diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-04-02 20:57:58 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-04-02 20:57:58 +0000 |
commit | e463b581ead04c1e5004e08c3bfb16e7fde88e20 (patch) | |
tree | 749b87f4193b5cf142a1be7fe82963ab00ba84f4 | |
parent | 11d9f695e710b406a487daf3fb83f82dea314063 (diff) |
rdtsc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@695 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | target-i386/helper.c | 2 | ||||
-rw-r--r-- | vl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index e61b05dc5c..d7cb6849b4 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1796,7 +1796,7 @@ void helper_rdtsc(void) { uint64_t val; #if defined(__i386__) || defined(__x86_64__) - asm("rdtsc" : "=A" (val)); + asm volatile ("rdtsc" : "=A" (val)); #else /* better than nothing: the time increases */ val = emu_time++; @@ -341,7 +341,7 @@ int64_t cpu_get_real_ticks(void) int64_t cpu_get_real_ticks(void) { int64_t val; - asm("rdtsc" : "=A" (val)); + asm volatile ("rdtsc" : "=A" (val)); return val; } |