]> xenbits.xensource.com Git - xenclient/ioemu.git/commitdiff
bswapq fix
authorbellard <bellard>
Wed, 3 May 2006 19:17:25 +0000 (19:17 +0000)
committerbellard <bellard>
Wed, 3 May 2006 19:17:25 +0000 (19:17 +0000)
target-i386/exec.h
target-i386/helper.c
target-i386/op.c

index 8299af4e7701232991367fe412ed6d9a665dcf72..4ff527f8414e1c63de56c93557aaaf31a28ba5ab 100644 (file)
@@ -187,6 +187,7 @@ void helper_imulq_EAX_T0(void);
 void helper_imulq_T0_T1(void);
 void helper_divq_EAX_T0(void);
 void helper_idivq_EAX_T0(void);
+void helper_bswapq_T0(void);
 void helper_cmpxchg8b(void);
 void helper_cpuid(void);
 void helper_enter_level(int level, int data32);
index 7bd545e81bcffe7da11ea08fa8378970a587b378..123f5104979dd0f61bec9d3f5505f73deb0681ff 100644 (file)
@@ -3395,6 +3395,10 @@ void helper_idivq_EAX_T0(void)
     EDX = r1;
 }
 
+void helper_bswapq_T0(void)
+{
+    T0 = bswap64(T0);
+}
 #endif
 
 float approx_rsqrt(float a)
index 20eeaa4409377436a3c73814021012b073882c7e..a9a8665a1ce8c1a80e05adfad7cc790fc3d79a93 100644 (file)
@@ -225,7 +225,7 @@ void OPPROTO op_bswapl_T0(void)
 #ifdef TARGET_X86_64
 void OPPROTO op_bswapq_T0(void)
 {
-    T0 = bswap64(T0);
+    helper_bswapq_T0();
 }
 #endif