Arm mulxy insn fix (Paul Brook)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 4 Dec 2005 18:56:28 +0000 (18:56 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 4 Dec 2005 18:56:28 +0000 (18:56 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1683 c046a42c-6fe2-441c-8c8c-71466251a162

target-arm/translate.c

index 930826c..a5eb3b4 100644 (file)
@@ -1021,11 +1021,11 @@ static inline void gen_jmp (DisasContext *s, uint32_t dest)
 
 static inline void gen_mulxy(int x, int y)
 {
-    if (x & 2)
+    if (x)
         gen_op_sarl_T0_im(16);
     else
         gen_op_sxth_T0();
-    if (y & 1)
+    if (y)
         gen_op_sarl_T1_im(16);
     else
         gen_op_sxth_T1();