mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/intc/xilinx_intc: 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-3-philmd@linaro.org>
This commit is contained in:
parent
4ec96630f9
commit
2cdf693b19
5 changed files with 53 additions and 14 deletions
|
@ -79,6 +79,7 @@ static void mb_v_generic_init(MachineState *machine)
|
|||
memory_region_add_subregion(sysmem, ddr_base, phys_ram);
|
||||
|
||||
dev = qdev_new("xlnx.xps-intc");
|
||||
qdev_prop_set_enum(dev, "endianness", ENDIAN_MODE_LITTLE);
|
||||
qdev_prop_set_uint32(dev, "kind-of-intr",
|
||||
1 << UARTLITE_IRQ);
|
||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue