qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requestin


From: Pavel Dovgalyuk
Subject: Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting
Date: Wed, 10 Dec 2014 09:35:17 +0300

No, it worked well and I deleted _nocache version of that function.
But I still need _raw one to get the instructions counter.

Sent using CloudMagic


On вт, Дек 09, 2014 at 8:39 PM, Paolo Bonzini <address@hidden> wrote:



On 08/12/2014 08:53, Pavel Dovgalyuk wrote:
>          if (!cpu_can_do_io(cpu)) {
> -            fprintf(stderr, "Bad clock read\n");
> +            fprintf(stderr, "Bad icount read\n");
> +            exit(1);
>          }
>          icount -= (cpu->icount_decr.u16.low + cpu->icount_extra);
>      }
> +    return icount;
> +}
> +
> +/* Return the virtual CPU time, based on the instruction counter.  */
> +static int64_t cpu_get_icount_locked(void)
> +{
> +    int64_t icount = cpu_get_icount_raw();
>      return timers_state.qemu_icount_bias + cpu_icount_to_ns(icount);

So it didn't work to set can_do_io?

Paolo


reply via email to

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