summaryrefslogtreecommitdiffstats
path: root/hw/m68k/virt.c
diff options
context:
space:
mode:
authorStafford Horne2022-06-12 13:53:44 +0200
committerStafford Horne2022-09-04 08:02:56 +0200
commit65f5144e1726c36c97df7e70484250941aafaa27 (patch)
tree9b52b2dcbead78aa6d7c14c1378fa5b52d5f1676 /hw/m68k/virt.c
parenttarget/openrisc: Fix memory reading in debugger (diff)
downloadqemu-65f5144e1726c36c97df7e70484250941aafaa27.tar.gz
qemu-65f5144e1726c36c97df7e70484250941aafaa27.tar.xz
qemu-65f5144e1726c36c97df7e70484250941aafaa27.zip
goldfish_rtc: Add big-endian property
Add a new property "big-endian" to allow configuring the RTC as either little or big endian, the default is little endian. Currently overriding the default to big endian is only used by the m68k virt platform. New platforms should prefer to use little endian and not set this. Cc: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'hw/m68k/virt.c')
-rw-r--r--hw/m68k/virt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/m68k/virt.c b/hw/m68k/virt.c
index 3122c8ef2c..2f3ffc0de6 100644
--- a/hw/m68k/virt.c
+++ b/hw/m68k/virt.c
@@ -173,6 +173,7 @@ static void virt_init(MachineState *machine)
io_base = VIRT_GF_RTC_MMIO_BASE;
for (i = 0; i < VIRT_GF_RTC_NB; i++) {
dev = qdev_new(TYPE_GOLDFISH_RTC);
+ qdev_prop_set_bit(dev, "big-endian", true);
sysbus = SYS_BUS_DEVICE(dev);
sysbus_realize_and_unref(sysbus, &error_fatal);
sysbus_mmio_map(sysbus, 0, io_base);