mirror of https://github.com/xqemu/xqemu.git
rdtsc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@695 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
11d9f695e7
commit
e463b581ea
|
@ -1796,7 +1796,7 @@ void helper_rdtsc(void)
|
||||||
{
|
{
|
||||||
uint64_t val;
|
uint64_t val;
|
||||||
#if defined(__i386__) || defined(__x86_64__)
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
asm("rdtsc" : "=A" (val));
|
asm volatile ("rdtsc" : "=A" (val));
|
||||||
#else
|
#else
|
||||||
/* better than nothing: the time increases */
|
/* better than nothing: the time increases */
|
||||||
val = emu_time++;
|
val = emu_time++;
|
||||||
|
|
Loading…
Reference in New Issue