[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv2 1/2] m48t59: introduce new year_offset qdev pr
From: |
Mark Cave-Ayland |
Subject: |
Re: [Qemu-devel] [PATCHv2 1/2] m48t59: introduce new year_offset qdev property |
Date: |
Sat, 14 Feb 2015 08:48:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 |
On 01/02/15 19:50, Hervé Poussineau wrote:
> Le 01/02/2015 19:39, Mark Cave-Ayland a écrit :
>> Currently the m48t59 device uses the hardware model in order to determine
>> whether the year value is offset from the hardware value. As this will
>> soon be required by the x59 model, change the year offset to a qdev
>> property and update the callers appropriately.
>>
>> Signed-off-by: Mark Cave-Ayland <address@hidden>
>
> Hi,
>
> Is it possible to use a 'base_year' property, like in the mc146818rtc
> device?
> Usual values will be 0 (for year 2000) and 1968 (for sun4m).
>
> Regards,
>
> Hervé
Hi Hervé,
I've just rebased and updated the patchset to use a "base_year" property
similar to mc146818rtc. AFAICT the hack for 0 representing year 2000
isn't relevant here since QEMU doesn't currently implement the century
bit and so the year is limited to 0-99. I'll send the new version out
shortly.
ATB,
Mark.