From 1dbe3d196d81da45df9f17d6959871c08bdb9dac Mon Sep 17 00:00:00 2001 From: Artyom Tarasenko Date: Sun, 5 May 2019 17:28:39 +0200 Subject: [PATCH] hw/ppc/40p: use 1900 as a base year MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AIX 5.1 expects the base year to be 1900. Adjust accordingly. Signed-off-by: Artyom Tarasenko Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20190505152839.18650-4-philmd@redhat.com> Signed-off-by: David Gibson --- 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;