Received: from eggs.gnu.org ([2001:4830:134:3::10]:34268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSWw8-0000W4-PQ for qemu-devel@nongnu.org; Tue, 25 Mar 2014 15:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSWw2-0007jp-Bn for qemu-devel@nongnu.org; Tue, 25 Mar 2014 15:23:00 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:45535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSWw2-0007jZ-0R for qemu-devel@nongnu.org; Tue, 25 Mar 2014 15:22:54 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1395764200-7379-1-git-send-email-fred.konrad@greensocs.com> <1395764200-7379-5-git-send-email-fred.konrad@greensocs.com> Date: Tue, 25 Mar 2014 20:22:48 +0100 In-Reply-To: <1395764200-7379-5-git-send-email-fred.konrad@greensocs.com> (fred konrad's message of "Tue, 25 Mar 2014 17:16:32 +0100") Message-ID: <87fvm6w0af.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [RFC PATCH v2 04/12] icount: introduce icount timer. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fred.konrad@greensocs.com Cc: pbonzini@redhat.com, mark.burton@greensocs.com, qemu-devel@nongnu.org fred konrad writes: > From: KONRAD Frederic > This introduces a new timer based only on instruction counter and without any > compensation. > Signed-off-by: KONRAD Frederic > --- > cpus.c | 19 ++++++++++++------- > include/qemu/timer.h | 9 ++++++++- > qemu-timer.c | 8 +++++++- > stubs/cpu-get-icount.c | 2 +- > 4 files changed, 28 insertions(+), 10 deletions(-) > diff --git a/cpus.c b/cpus.c > index 89f4b26..e646bac 100644 > --- a/cpus.c > +++ b/cpus.c > @@ -132,7 +132,7 @@ typedef struct TimersState { > static TimersState timers_state; > /* Return the virtual CPU time, based on the instruction counter. */ > -static int64_t cpu_get_icount_locked(void) > +static int64_t cpu_get_icount_locked(int with_bias) [...] Nitpick; these should be declared as bool. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth