mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
0fd8a106ef
commit
65f5144e17
3 changed files with 31 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue