hw/ssi/xilinx_spi: Make device endianness configurable
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 6 Nov 2024 23:24:27 +0000 (23:24 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 16 Feb 2025 13:34:57 +0000 (14:34 +0100)
commite87c93df1134516166ff3d8f9a56e168ff7e1c8a
tree5f355ef8078dd6ceeaedc6bd2aacd9a9d9723f02
parent8a8c92c8afbb8a153968a72dd4ce504884a3209d
hw/ssi/xilinx_spi: 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 on the single 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-7-philmd@linaro.org>
hw/microblaze/petalogix_ml605_mmu.c
hw/ssi/xilinx_spi.c