summaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-02 20:57:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-02 20:57:58 +0000
commite463b581ead04c1e5004e08c3bfb16e7fde88e20 (patch)
tree749b87f4193b5cf142a1be7fe82963ab00ba84f4 /target-i386/helper.c
parent11d9f695e710b406a487daf3fb83f82dea314063 (diff)
downloadqemu-e463b581ead04c1e5004e08c3bfb16e7fde88e20.zip
rdtsc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@695 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c2
1 files changed, 1 insertions, 1 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++;