qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC 3/3] icount: create a new icount based timer.


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC 3/3] icount: create a new icount based timer.
Date: Thu, 18 Jul 2013 16:08:30 +0100

On 18 July 2013 16:02,  <address@hidden> wrote:
> @@ -156,6 +156,12 @@ void restore_icount(CPUArchState *env, int save)
>  /* Return the virtual CPU time, based on the instruction counter.  */
>  int64_t cpu_get_icount(void)
>  {
> +    return qemu_icount_bias + cpu_get_icount_wo_bias();
> +}
> +
> +/* Return the virtual CPU time, really based on the instruction counter.  */
> +int64_t cpu_get_icount_wo_bias(void)
> +{

The comments for these two functions don't make any sense.
You need to explain what they're actually doing (and
when you'd want one and when the other).

-- PMM



reply via email to

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