aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-11-06 17:44:01 +0000
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-31 21:21:34 +0100
commit625a975f67314a91084e59e2320c910b4129cbaf (patch)
tree87ffcd55a8dbb514321b8506fd44a6da2b2ec867
parenta115ab5ba30ae78efdf346df594940042b69aa27 (diff)
downloadqemu-625a975f67314a91084e59e2320c910b4129cbaf.zip
qemu-625a975f67314a91084e59e2320c910b4129cbaf.tar.gz
qemu-625a975f67314a91084e59e2320c910b4129cbaf.tar.bz2
hw/tricore: Mark devices as little-endian
These devices are only used by the TriCore target, which is 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> Reviewed-by: Thomas Huth <huth@tuxfamily.org> Message-Id: <20241106184612.71897-3-philmd@linaro.org>
-rw-r--r--hw/tricore/tricore_testdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/tricore/tricore_testdevice.c b/hw/tricore/tricore_testdevice.c
index e60866d..d2da74e 100644
--- a/hw/tricore/tricore_testdevice.c
+++ b/hw/tricore/tricore_testdevice.c
@@ -47,7 +47,7 @@ static const MemoryRegionOps tricore_testdevice_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = DEVICE_LITTLE_ENDIAN,
};
static void tricore_testdevice_init(Object *obj)