[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] target/i386: Mark WHPX APIC region as little-endian
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 5/5] target/i386: Mark WHPX APIC region as little-endian |
Date: |
Wed, 12 Feb 2025 12:39:38 +0100 |
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>
---
target/i386/whpx/whpx-apic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/whpx/whpx-apic.c b/target/i386/whpx/whpx-apic.c
index 4245ab68a27..630a9616d71 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)
--
2.47.1
- [PATCH 0/5] hw: More DEVICE_ [NATIVE -> LITTLE] _ENDIAN conversions, Philippe Mathieu-Daudé, 2025/02/12
- [PATCH 1/5] hw/arm: Mark Allwinner Technology devices as little-endian, Philippe Mathieu-Daudé, 2025/02/12
- [PATCH 2/5] hw/mips: Mark Boston machine devices as little-endian, Philippe Mathieu-Daudé, 2025/02/12
- [PATCH 3/5] hw/mips: Mark Loonson3 Virt machine devices as little-endian, Philippe Mathieu-Daudé, 2025/02/12
- [PATCH 4/5] hw/pci-host: Mark versatile regions as little-endian, Philippe Mathieu-Daudé, 2025/02/12
- [PATCH 5/5] target/i386: Mark WHPX APIC region as little-endian,
Philippe Mathieu-Daudé <=
- Re: [PATCH 0/5] hw: More DEVICE_ [NATIVE -> LITTLE] _ENDIAN conversions, Philippe Mathieu-Daudé, 2025/02/16