]> git.proxmox.com Git - qemu.git/blobdiff - target-i386/helper.c
initial x86-64 host support (Gwenole Beauchesne)
[qemu.git] / target-i386 / helper.c
index 0c320836c58c5d64db97a9111b90b1719cba8cb6..9bd1158b0684cb4129302604b1224b03979bfb70 100644 (file)
@@ -1802,14 +1802,14 @@ void helper_invlpg(unsigned int addr)
 }
 
 /* rdtsc */
-#ifndef __i386__
+#if !defined(__i386__) && !defined(__x86_64__)
 uint64_t emu_time;
 #endif
 
 void helper_rdtsc(void)
 {
     uint64_t val;
-#ifdef __i386__
+#if defined(__i386__) || defined(__x86_64__)
     asm("rdtsc" : "=A" (val));
 #else
     /* better than nothing: the time increases */