All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s
@ 2012-11-23 15:12 ` Peter Maydell
  0 siblings, 0 replies; 23+ messages in thread
From: Peter Maydell @ 2012-11-23 15:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Yurij Popov, patches

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 <oss@djphoenix.ru>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 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



^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2012-12-10 15:43 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23 15:12 [Qemu-trivial] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s Peter Maydell
2012-11-23 15:12 ` [Qemu-devel] " Peter Maydell
2012-11-23 15:15 ` [Qemu-trivial] " Paolo Bonzini
2012-11-23 15:15   ` [Qemu-devel] " Paolo Bonzini
2012-11-23 15:17   ` [Qemu-trivial] " Peter Maydell
2012-11-23 15:17     ` [Qemu-devel] " Peter Maydell
2012-11-23 15:31     ` [Qemu-trivial] " Jamie Lokier
2012-11-23 15:31       ` Jamie Lokier
2012-11-23 15:38       ` [Qemu-trivial] " Peter Maydell
2012-11-23 15:38         ` Peter Maydell
2012-11-23 16:21         ` [Qemu-trivial] " Jamie Lokier
2012-11-23 16:21           ` Jamie Lokier
2012-11-23 15:37     ` [Qemu-trivial] " Peter Maydell
2012-11-23 15:37       ` [Qemu-devel] " Peter Maydell
2012-11-23 16:19       ` [Qemu-trivial] " Jamie Lokier
2012-11-23 16:19         ` Jamie Lokier
2012-11-24 17:39         ` [Qemu-devel] [PATCH] tcg-i386: Improve cmov detection Richard Henderson
2012-11-24 18:12           ` Peter Maydell
2012-11-26 16:23             ` Richard Henderson
2012-12-10 15:42               ` 陳韋任 (Wei-Ren Chen)
2012-11-25 13:44           ` Aurelien Jarno
2012-12-03 13:00 ` [Qemu-trivial] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s Stefan Hajnoczi
2012-12-03 13:00   ` [Qemu-devel] " Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.