Received: from eggs.gnu.org ([209.51.188.92]:44354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNIvj-0005Hb-0y for qemu-devel@nongnu.org; Sun, 05 May 2019 11:19:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNIvh-0004oH-Tw for qemu-devel@nongnu.org; Sun, 05 May 2019 11:19:55 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNIvh-0004mm-NJ for qemu-devel@nongnu.org; Sun, 05 May 2019 11:19:53 -0400 Received: by mail-wm1-f66.google.com with SMTP id w1so1979439wmi.1 for ; Sun, 05 May 2019 08:19:52 -0700 (PDT) References: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> <1557003754-26473-4-git-send-email-atar4qemu@gmail.com> <7e282cd4-f402-c807-b9aa-7034d04031b6@ilande.co.uk> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Sun, 5 May 2019 17:19:49 +0200 MIME-Version: 1.0 In-Reply-To: <7e282cd4-f402-c807-b9aa-7034d04031b6@ilande.co.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland , Artyom Tarasenko , qemu-devel@nongnu.org, hpoussin@reactos.org Cc: "open list:PReP" Hi Mark, Artyom. On 5/5/19 12:46 PM, Mark Cave-Ayland wrote: > On 04/05/2019 22:02, Artyom Tarasenko wrote: > >> AIX 5.1 expects the base year to be 1900. Adjust accordingly. >> >> Signed-off-by: Artyom Tarasenko >> Reviewed-by: Hervé Poussineau >> --- >> 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) > > Is this true for the 82378 in general, or is it a particular quirk of the 40p > machine/PReP specification? This is indeed incorrect (see https://lists.gnu.org/archive/html/qemu-devel/2019-04/msg02452.html) so: Nack Artyom: I did wrote the patch and included it in another series based on top of Joel Stanley's https://lists.gnu.org/archive/html/qemu-devel/2019-05/msg00657.html which is also depending of another from Cédric, so I'll just extract it and send directly, sorry for the delay. Regards, Phil.