hw/char/xilinx_uartlite: Make device endianness configurable
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 6 Nov 2024 23:24:04 +0000 (23:24 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 16 Feb 2025 13:34:51 +0000 (14:34 +0100)
commit8a8c92c8afbb8a153968a72dd4ce504884a3209d
treed7db77a85b48af1033d5892ffeb379b9b319e2e9
parentdf1f35ab67e50f572934b7ea705764b77cf6d525
hw/char/xilinx_uartlite: 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.

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