aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
PATCH 1/1 aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were first introduced, their MMIO regions inherited of a DEVICE_NATIVE_ENDIAN endianness. It should be DEVICE_LITTLE_ENDIAN. Fix that.
--- hw/misc/aspeed_xdma.c | 2 +- hw/rtc/aspeed_rtc.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
hw/misc/aspeed_xdma.c +1 -1
@@ -113,7 +113,7 @@ static void aspeed_xdma_write(void *opaque, hwaddr addr, uint64_t val,static const MemoryRegionOps aspeed_xdma_ops = { .read = aspeed_xdma_read, .write = aspeed_xdma_write, - .endianness =DEVICE_NATIVE_ENDIAN , + .endianness =DEVICE_LITTLE_ENDIAN , .valid.min_access_size =1 , .valid.max_access_size =4 , };
hw/rtc/aspeed_rtc.c +1 -1
@@ -131,7 +131,7 @@ static void aspeed_rtc_reset(DeviceState *d)static const MemoryRegionOps aspeed_rtc_ops = { .read = aspeed_rtc_read, .write = aspeed_rtc_write, - .endianness =DEVICE_NATIVE_ENDIAN , + .endianness =DEVICE_LITTLE_ENDIAN , };static const VMStateDescription vmstate_aspeed_rtc = {
hw/sd/aspeed_sdhci.c +1 -1
@@ -124,7 +124,7 @@ static void aspeed_sdhci_write(void *opaque, hwaddr addr, uint64_t val,static const MemoryRegionOps aspeed_sdhci_ops = { .read = aspeed_sdhci_read, .write = aspeed_sdhci_write, - .endianness =DEVICE_NATIVE_ENDIAN , + .endianness =DEVICE_LITTLE_ENDIAN , .valid.min_access_size =1 , .valid.max_access_size =4 , };
Signature · 1 line
2.51.1
Re: [PATCH] aspeed/{xdma,rtc,sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
Quoted 10 lines · Cédric Le Goater
When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were first introduced, their MMIO regions inherited of a
DEVICE_NATIVE_ENDIANendianness. It should beDEVICE_LITTLE_ENDIAN. Fix that.Signed-off-by Cédric Le Goater <[email protected]>--- hw/misc/aspeed_xdma.c | 2 +- hw/rtc/aspeed_rtc.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
\o/
Thanks for the help :)
Re: [PATCH] aspeed/{xdma,rtc,sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
Quoted 12 lines · Philippe Mathieu-Daudé
Quoted 10 lines · Cédric Le Goater
When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were first introduced, their MMIO regions inherited of a
DEVICE_NATIVE_ENDIANendianness. It should beDEVICE_LITTLE_ENDIAN. Fix that.Signed-off-by Cédric Le Goater <[email protected]>---
hw/misc/aspeed_xdma.c| 2 +-
hw/rtc/aspeed_rtc.c | 2 +-
hw/sd/aspeed_sdhci.c | 2 +-3 files changed, 3 insertions(+), 3 deletions(-)
Quoted 3 lines
\o/
Thanks for the help :)
Only 379 left !
Cheers,
C.
Philippe Mathieu-Daudé
AppliedRe: [PATCH] aspeed/{xdma,rtc,sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
In reply to Cédric Le Goater viaQuoted 10 lines · Cédric Le Goater
When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were first introduced, their MMIO regions inherited of a
DEVICE_NATIVE_ENDIANendianness. It should beDEVICE_LITTLE_ENDIAN. Fix that.Signed-off-by Cédric Le Goater <[email protected]>--- hw/misc/aspeed_xdma.c | 2 +- hw/rtc/aspeed_rtc.c | 2 +- hw/sd/aspeed_sdhci.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Queued, thanks.
Quoted 3 lines · Cédric Le Goater via
When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were first introduced, their MMIO regions inherited of a
DEVICE_NATIVE_ENDIANendianness. It should beDEVICE_LITTLE_ENDIAN. Fix that.
This looks like another bit for qemu-stable. I'm picking it up for 10.0 and 10.1 series. Please let me know if I shouldn't.
Thanks,
/mjt
Quoted 7 lines · Michael Tokarev
Quoted 3 lines · Cédric Le Goater via
When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were first introduced, their MMIO regions inherited of a
DEVICE_NATIVE_ENDIANendianness. It should beDEVICE_LITTLE_ENDIAN. Fix that.This looks like another bit for qemu-stable. I'm picking it up for 10.0 and 10.1 series. Please let me know if I shouldn't.
You can. It shouldn't harm anyone.
Thanks,
C.