aboutsummaryrefslogtreecommitdiff
path: root/vl.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 /vl.c
parent11d9f695e710b406a487daf3fb83f82dea314063 (diff)
rdtsc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@695 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index ed5c380151..24895508d0 100644
--- a/vl.c
+++ b/vl.c
@@ -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;
}