diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-11-06 17:43:47 +0000 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-31 21:21:34 +0100 |
commit | eba75400f37d4b80835b371d834c9d94a52063a6 (patch) | |
tree | 02fe3f0b16f896fe7b04581a20910676a6429028 /hw/sparc/sun4m_iommu.c | |
parent | e72eee9684b5eca48815e762ad097101c487514f (diff) | |
download | qemu-eba75400f37d4b80835b371d834c9d94a52063a6.zip qemu-eba75400f37d4b80835b371d834c9d94a52063a6.tar.gz qemu-eba75400f37d4b80835b371d834c9d94a52063a6.tar.bz2 |
hw/sparc: Mark devices as big-endian
These devices are only used by the SPARC targets, which are
only built as big-endian. Therefore the DEVICE_NATIVE_ENDIAN
definition expand to DEVICE_BIG_ENDIAN (besides, the
DEVICE_LITTLE_ENDIAN case isn't tested). Simplify directly
using DEVICE_BIG_ENDIAN.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241106184612.71897-6-philmd@linaro.org>
Diffstat (limited to 'hw/sparc/sun4m_iommu.c')
-rw-r--r-- | hw/sparc/sun4m_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sparc/sun4m_iommu.c b/hw/sparc/sun4m_iommu.c index 8c1fc82..5a4c1f5 100644 --- a/hw/sparc/sun4m_iommu.c +++ b/hw/sparc/sun4m_iommu.c @@ -238,7 +238,7 @@ static void iommu_mem_write(void *opaque, hwaddr addr, static const MemoryRegionOps iommu_mem_ops = { .read = iommu_mem_read, .write = iommu_mem_write, - .endianness = DEVICE_NATIVE_ENDIAN, + .endianness = DEVICE_BIG_ENDIAN, .valid = { .min_access_size = 4, .max_access_size = 4, |