From: Artyom Tarasenko <[email protected]> AIX 5.1 expects the base year to be 1900. Adjust accordingly.
Signed-off-by: Artyom Tarasenko <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: David Gibson <[email protected]> --- hw/ppc/prep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 7a0d311d43..2a8009e20b 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -676,7 +676,9 @@ static void ibm_40p_init(MachineState *machine) qdev_init_nofail(dev); /* RTC */ - isa_create_simple(isa_bus, TYPE_MC146818_RTC); + dev = DEVICE(isa_create(isa_bus, TYPE_MC146818_RTC)); + qdev_prop_set_int32(dev, "base_year", 1900); + qdev_init_nofail(dev); /* initialize CMOS checksums */ cmos_checksum = 0x6aa9; -- 2.21.0
