Commit e463b581ead04c1e5004e08c3bfb16e7fde88e20
1 parent
11d9f695
rdtsc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@695 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
2 additions
and
2 deletions
target-i386/helper.c
... | ... | @@ -1796,7 +1796,7 @@ void helper_rdtsc(void) |
1796 | 1796 | { |
1797 | 1797 | uint64_t val; |
1798 | 1798 | #if defined(__i386__) || defined(__x86_64__) |
1799 | - asm("rdtsc" : "=A" (val)); | |
1799 | + asm volatile ("rdtsc" : "=A" (val)); | |
1800 | 1800 | #else |
1801 | 1801 | /* better than nothing: the time increases */ |
1802 | 1802 | val = emu_time++; | ... | ... |