AIX 5.1 expects the base year to be 1900. Adjust accordingly.
Signed-off-by: Artyom Tarasenko <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
---
hw/isa/i82378.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c
index a5d67bc..546c928 100644
--- a/hw/isa/i82378.c
+++ b/hw/isa/i82378.c
@@ -107,7 +107,9 @@ static void i82378_realize(PCIDevice *pci, Error **errp)
isa = isa_create_simple(isabus, "i82374");
/* timer */
- isa_create_simple(isabus, TYPE_MC146818_RTC);
+ isa = isa_create(isabus, TYPE_MC146818_RTC);
+ qdev_prop_set_int32(DEVICE(isa), "base_year", 1900);
+ qdev_init_nofail(DEVICE(isa));
}
static void i82378_init(Object *obj)
--
2.7.2