diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-10-26 01:54:06 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-01-13 09:32:32 +0100 |
commit | fae45dd53dcf4029e30b0915efcc62dfd56bdee0 (patch) | |
tree | 232bfbcf870106cb329b581f675a6f731dab8aee /hw/mips | |
parent | a699b915ded075b6253bebf50ec5dc2040d23612 (diff) | |
download | qemu-fae45dd53dcf4029e30b0915efcc62dfd56bdee0.zip qemu-fae45dd53dcf4029e30b0915efcc62dfd56bdee0.tar.gz qemu-fae45dd53dcf4029e30b0915efcc62dfd56bdee0.tar.bz2 |
hw/mips/malta: Explicit GT64120 endianness upon device creation
Propagate the controller endianess from the machine, setting
the "cpu-little-endian" property.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221209151533.69516-6-philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/mips')
-rw-r--r-- | hw/mips/malta.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/mips/malta.c b/hw/mips/malta.c index c8fc420..f959bce 100644 --- a/hw/mips/malta.c +++ b/hw/mips/malta.c @@ -1396,7 +1396,9 @@ void mips_malta_init(MachineState *machine) stl_p(memory_region_get_ram_ptr(bios_copy) + 0x10, 0x00000420); /* Northbridge */ - dev = sysbus_create_simple("gt64120", -1, NULL); + dev = qdev_new("gt64120"); + qdev_prop_set_bit(dev, "cpu-little-endian", !be); + sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); pci_bus = PCI_BUS(qdev_get_child_bus(dev, "pci")); /* Southbridge */ |