From: Artyom Tarasenko <atar4qemu@gmail.com> To: qemu-devel@nongnu.org, hpoussin@reactos.org Cc: Artyom Tarasenko <atar4qemu@gmail.com>, "open list:PReP" <qemu-ppc@nongnu.org> Subject: [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year Date: Sat, 4 May 2019 23:02:34 +0200 [thread overview] Message-ID: <1557003754-26473-4-git-send-email-atar4qemu@gmail.com> (raw) In-Reply-To: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> AIX 5.1 expects the base year to be 1900. Adjust accordingly. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Reviewed-by: Hervé Poussineau <hpoussin@reactos.org> --- 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
WARNING: multiple messages have this Message-ID (diff)
From: Artyom Tarasenko <atar4qemu@gmail.com> To: qemu-devel@nongnu.org, hpoussin@reactos.org Cc: "open list:PReP" <qemu-ppc@nongnu.org>, Artyom Tarasenko <atar4qemu@gmail.com> Subject: [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year Date: Sat, 4 May 2019 23:02:34 +0200 [thread overview] Message-ID: <1557003754-26473-4-git-send-email-atar4qemu@gmail.com> (raw) Message-ID: <20190504210234.9SfLxcxmPXZN-_R54r0sdD3o9ceQWwM6SQscuf8mRe0@z> (raw) In-Reply-To: <1557003754-26473-1-git-send-email-atar4qemu@gmail.com> AIX 5.1 expects the base year to be 1900. Adjust accordingly. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Reviewed-by: Hervé Poussineau <hpoussin@reactos.org> --- 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
next prev parent reply other threads:[~2019-05-04 21:03 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-04 21:02 [Qemu-devel] [PATCH v2 0/3] Improve 40p, make AIX 5.1 boot Artyom Tarasenko 2019-05-04 21:02 ` Artyom Tarasenko 2019-05-04 21:02 ` [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810 Artyom Tarasenko 2019-05-04 21:02 ` Artyom Tarasenko 2019-05-05 10:41 ` Mark Cave-Ayland 2019-05-05 10:41 ` Mark Cave-Ayland 2019-05-06 8:42 ` Artyom Tarasenko 2019-05-06 14:22 ` Mark Cave-Ayland 2019-05-07 15:03 ` Artyom Tarasenko 2019-05-17 14:12 ` Mark Cave-Ayland 2019-05-20 9:32 ` Paolo Bonzini 2019-05-04 21:02 ` [Qemu-devel] [PATCH 2/3] 40p and prep: implement PCI bus mastering Artyom Tarasenko 2019-05-04 21:02 ` Artyom Tarasenko 2019-05-04 21:02 ` Artyom Tarasenko [this message] 2019-05-04 21:02 ` [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year Artyom Tarasenko 2019-05-05 10:46 ` Mark Cave-Ayland 2019-05-05 10:46 ` Mark Cave-Ayland 2019-05-05 15:19 ` Philippe Mathieu-Daudé 2019-05-05 15:19 ` Philippe Mathieu-Daudé 2019-05-06 8:44 ` Artyom Tarasenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1557003754-26473-4-git-send-email-atar4qemu@gmail.com \ --to=atar4qemu@gmail.com \ --cc=hpoussin@reactos.org \ --cc=qemu-devel@nongnu.org \ --cc=qemu-ppc@nongnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).