[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year
From: |
Mark Cave-Ayland |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year |
Date: |
Sun, 5 May 2019 11:46:03 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
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 <address@hidden>
> Reviewed-by: Hervé Poussineau <address@hidden>
> ---
> 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?
ATB,
Mark.
- [Qemu-devel] [PATCH v2 0/3] Improve 40p, make AIX 5.1 boot, Artyom Tarasenko, 2019/05/04
- [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810, Artyom Tarasenko, 2019/05/04
- Re: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810, Mark Cave-Ayland, 2019/05/05
- Re: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810, Artyom Tarasenko, 2019/05/06
- Re: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810, Mark Cave-Ayland, 2019/05/06
- Re: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810, Artyom Tarasenko, 2019/05/07
- Re: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810, Mark Cave-Ayland, 2019/05/17
- Re: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810, Paolo Bonzini, 2019/05/20
[Qemu-devel] [PATCH 2/3] 40p and prep: implement PCI bus mastering, Artyom Tarasenko, 2019/05/04
[Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year, Artyom Tarasenko, 2019/05/04
- Re: [Qemu-devel] [PATCH v2 3/3] hw/isa/i82378.c: use 1900 as a base year,
Mark Cave-Ayland <=