From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfVda-0006Pa-6D for qemu-devel@nongnu.org; Mon, 03 Dec 2012 08:00:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfVdT-00022F-5v for qemu-devel@nongnu.org; Mon, 03 Dec 2012 08:00:42 -0500 Date: Mon, 3 Dec 2012 14:00:30 +0100 From: Stefan Hajnoczi Message-ID: <20121203130030.GF6048@stefanha-thinkpad.redhat.com> References: <1353683570-30525-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1353683570-30525-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, patches@linaro.org, qemu-devel@nongnu.org, Yurij Popov On Fri, Nov 23, 2012 at 03:12:50PM +0000, Peter Maydell wrote: > Adjust the conditional which guards the implementation of > cpu_get_real_ticks() via RDTSC, so that we don't try to use it > on x86 CPUs which don't implement RDTSC. Instead we will fall > back to the no-cycle-counter-available default implementation. > > Reported-by: Yurij Popov > Signed-off-by: Peter Maydell > --- > qemu-timer.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qemu-timer.h b/qemu-timer.h > index da7e97c..e35f163 100644 > --- a/qemu-timer.h > +++ b/qemu-timer.h > @@ -169,7 +169,7 @@ static inline int64_t cpu_get_real_ticks(void) > return retval; > } > > -#elif defined(__i386__) > +#elif defined(__i586__) > > static inline int64_t cpu_get_real_ticks(void) > { > -- > 1.7.9.5 Dropping this due to the issue with gcc __i586__ that has been discussed. Stefan