qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for target_bit


From: Bhushan Bharat-R65777
Subject: Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for target_bit above 61
Date: Mon, 10 Jun 2013 09:53:10 +0000


> -----Original Message-----
> From: Peter Maydell [mailto:address@hidden
> Sent: Monday, June 10, 2013 2:56 PM
> To: Bhushan Bharat-R65777
> Cc: address@hidden; address@hidden; address@hidden; Wood Scott-
> B07421; Bhushan Bharat-R65777
> Subject: Re: [Qemu-devel] [PATCH v2]booke: timer: Deactivate timer for
> target_bit above 61
> 
> On 10 June 2013 08:55, Bharat Bhushan <address@hidden> wrote:
> > QEMU timer supports a maximum timer of INT64_MAX. So starting timer
> > only for time which is calculated using target_bit < 62 and
> > deactivate/stop timer if the target bit is above 61.
> 
> Is this really what the hardware does? Or do we need to set a timer for the
> maximum QEMU allows and then reset it for the residual time when the first 
> timer
> expires?

No, this is not how hardware works. But the time with the maximum target bit of 
61 (with current range of CPU frequency PowerPC supports) will be many many 
years. So I think it is pretty safe to stop the timer.

Thanks
-Bharat

> 
> thanks
> -- PMM


reply via email to

[Prev in Thread] Current Thread [Next in Thread]