]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/timer/xilinx_timer: Make device endianness configurable
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 25 Sep 2024 21:16:21 +0000 (23:16 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 16 Feb 2025 13:34:44 +0000 (14:34 +0100)
commitdf1f35ab67e50f572934b7ea705764b77cf6d525
tree01d5e8943fdc32be585110f56bb912015eba30f2
parent644276db5d707eba7dd89cc8550b3639dbd29f75
hw/timer/xilinx_timer: Make device endianness configurable

Replace the DEVICE_NATIVE_ENDIAN MemoryRegionOps by a pair of
DEVICE_LITTLE_ENDIAN / DEVICE_BIG_ENDIAN.

Add the "endianness" property to select the device endianness.
This property is unspecified by default, and machines need to
set it explicitly.

Set the proper endianness for each machine using the device.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250213122217.62654-5-philmd@linaro.org>
hw/microblaze/petalogix_ml605_mmu.c
hw/microblaze/petalogix_s3adsp1800_mmu.c
hw/ppc/virtex_ml507.c
hw/riscv/microblaze-v-generic.c
hw/timer/xilinx_timer.c