mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/s390x: Use explicit big-endian LD/ST API
The S390X architecture uses big endianness. Directly use the big-endian LD/ST API. Mechanical change using: $ end=be; \ for acc in uw w l q tul; do \ sed -i -e "s/ld${acc}_p(/ld${acc}_${end}_p(/" \ -e "s/st${acc}_p(/st${acc}_${end}_p(/" \ $(git grep -wlE '(ld|st)t?u?[wlq]_p' hw/s390x/); \ done Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20241004163042.85922-23-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
3a76d30204
commit
c76c86fba5
2 changed files with 85 additions and 85 deletions
|
@ -252,8 +252,8 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp)
|
|||
*/
|
||||
romptr = rom_ptr(INITRD_PARM_START, 16);
|
||||
if (romptr) {
|
||||
stq_p(romptr, initrd_offset);
|
||||
stq_p(romptr + 1, initrd_size);
|
||||
stq_be_p(romptr, initrd_offset);
|
||||
stq_be_p(romptr + 1, initrd_size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue