mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
hw/net/xilinx_ethlite: 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-4-philmd@linaro.org>
This commit is contained in:
parent
2cdf693b19
commit
644276db5d
3 changed files with 25 additions and 6 deletions
|
@ -120,6 +120,7 @@ static void mb_v_generic_init(MachineState *machine)
|
|||
|
||||
/* Emaclite */
|
||||
dev = qdev_new("xlnx.xps-ethernetlite");
|
||||
qdev_prop_set_enum(dev, "endianness", ENDIAN_MODE_LITTLE);
|
||||
qemu_configure_nic_device(dev, true, NULL);
|
||||
qdev_prop_set_uint32(dev, "tx-ping-pong", 0);
|
||||
qdev_prop_set_uint32(dev, "rx-ping-pong", 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue