|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting |
Date: | Tue, 09 Dec 2014 18:39:24 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |