diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-12 09:21:41 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-16 14:41:46 +0100 |
commit | 62fb8ec35b7d7de7bfd4bd008026d49a5f52f946 (patch) | |
tree | 9be5f2104b61ef8a53a9912b8d19a503f9a7c04e | |
parent | 8970e2ea01f91c3162c36c731ea9720cb0df9bff (diff) | |
download | qemu-62fb8ec35b7d7de7bfd4bd008026d49a5f52f946.zip qemu-62fb8ec35b7d7de7bfd4bd008026d49a5f52f946.tar.gz qemu-62fb8ec35b7d7de7bfd4bd008026d49a5f52f946.tar.bz2 |
hw/pci-host: Mark versatile regions as little-endian
This device is only used by the ARM targets, which are only
built as little-endian. Therefore the DEVICE_NATIVE_ENDIAN
definition expand to DEVICE_LITTLE_ENDIAN (besides, the
DEVICE_BIG_ENDIAN case isn't tested). Simplify directly
using DEVICE_LITTLE_ENDIAN.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250212113938.38692-5-philmd@linaro.org>
-rw-r--r-- | hw/pci-host/versatile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index c3fbf4c..33a8ceb 100644 --- a/hw/pci-host/versatile.c +++ b/hw/pci-host/versatile.c @@ -246,7 +246,7 @@ static uint64_t pci_vpb_reg_read(void *opaque, hwaddr addr, static const MemoryRegionOps pci_vpb_reg_ops = { .read = pci_vpb_reg_read, .write = pci_vpb_reg_write, - .endianness = DEVICE_NATIVE_ENDIAN, + .endianness = DEVICE_LITTLE_ENDIAN, .valid = { .min_access_size = 4, .max_access_size = 4, @@ -312,7 +312,7 @@ static uint64_t pci_vpb_config_read(void *opaque, hwaddr addr, static const MemoryRegionOps pci_vpb_config_ops = { .read = pci_vpb_config_read, .write = pci_vpb_config_write, - .endianness = DEVICE_NATIVE_ENDIAN, + .endianness = DEVICE_LITTLE_ENDIAN, }; static int pci_vpb_map_irq(PCIDevice *d, int irq_num) |