aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-02-12 09:50:11 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-06 15:46:18 +0100
commitdf9ae6aa84b92bb73c84194dc60f938e2495594c (patch)
tree17f1e33f0511247ab8dcd5c07da0781a345d9195
parent35487a6dc0e53b998217b0963d10c18e84c5bb28 (diff)
downloadqemu-df9ae6aa84b92bb73c84194dc60f938e2495594c.zip
qemu-df9ae6aa84b92bb73c84194dc60f938e2495594c.tar.gz
qemu-df9ae6aa84b92bb73c84194dc60f938e2495594c.tar.bz2
target/i386: Mark WHPX APIC region as little-endian
This device is only used by the x86 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-6-philmd@linaro.org>
-rw-r--r--target/i386/whpx/whpx-apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/whpx/whpx-apic.c b/target/i386/whpx/whpx-apic.c
index 4245ab6..630a961 100644
--- a/target/i386/whpx/whpx-apic.c
+++ b/target/i386/whpx/whpx-apic.c
@@ -231,7 +231,7 @@ static void whpx_apic_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps whpx_apic_io_ops = {
.read = whpx_apic_mem_read,
.write = whpx_apic_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = DEVICE_LITTLE_ENDIAN,
};
static void whpx_apic_reset(APICCommonState *s)