diff options
| author | Stafford Horne <shorne@gmail.com> | 2022-06-12 20:53:44 +0900 |
|---|---|---|
| committer | Stafford Horne <shorne@gmail.com> | 2022-09-04 07:02:56 +0100 |
| commit | 65f5144e1726c36c97df7e70484250941aafaa27 (patch) | |
| tree | 9b52b2dcbead78aa6d7c14c1378fa5b52d5f1676 /hw/m68k/virt.c | |
| parent | 0fd8a106efb6bc2e55b3e9629b106d13a7214570 (diff) | |
| download | focaccia-qemu-65f5144e1726c36c97df7e70484250941aafaa27.tar.gz focaccia-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.c | 1 |
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); |