aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-arm/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c
index 930826cab9..a5eb3b4c72 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -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();