diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-12 09:15:48 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-16 14:41:46 +0100 |
| commit | ba26f1477735a5ad7dd40a3227ac2a54cf82014d (patch) | |
| tree | 35d102dc114aedcddcc2056fd5d7b7ff28c62f4f /hw/i2c | |
| parent | e87c93df1134516166ff3d8f9a56e168ff7e1c8a (diff) | |
| download | focaccia-qemu-ba26f1477735a5ad7dd40a3227ac2a54cf82014d.tar.gz focaccia-qemu-ba26f1477735a5ad7dd40a3227ac2a54cf82014d.zip | |
hw/arm: Mark Allwinner Technology devices as little-endian
These devices are 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-2-philmd@linaro.org>
Diffstat (limited to 'hw/i2c')
| -rw-r--r-- | hw/i2c/allwinner-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c/allwinner-i2c.c b/hw/i2c/allwinner-i2c.c index 16f1d6d40e..66d6431c50 100644 --- a/hw/i2c/allwinner-i2c.c +++ b/hw/i2c/allwinner-i2c.c @@ -407,7 +407,7 @@ static const MemoryRegionOps allwinner_i2c_ops = { .write = allwinner_i2c_write, .valid.min_access_size = 1, .valid.max_access_size = 4, - .endianness = DEVICE_NATIVE_ENDIAN, + .endianness = DEVICE_LITTLE_ENDIAN, }; static const VMStateDescription allwinner_i2c_vmstate = { |