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 <pbonz...@redhat.com> 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