qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Timers


From: Paul Brook
Subject: Re: [Qemu-devel] Timers
Date: Wed, 23 May 2007 18:18:58 +0100
User-agent: KMail/1.9.6

On Wednesday 23 May 2007, Blue Swirl wrote:
> On 5/23/07, Paul Brook <address@hidden> wrote:
> > I get fed up of having to re-implement a simple countdown timer for every
> > new board, so I've added a simple periodic timer implementation to cvs
> > (ptimer.c). Currently only the Arm PrimeCell based boards use this, but
> > I've a few other uses in the pipeline.
>
> Nice idea! On Sparc the timer can be configured to work in 64-bit
> mode, so could the ptimer_get/set_count be changed to use 64-bit
> values?

In principle yes, though you may have to be careful to avoid overflows.

The current API supports specifying either frequency (better for fast, large 
count timers) and period (better for slow, small count timers). We want to 
avoid breaking either extreme when adding 64-bit counters.

Paul





reply via email to

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