Commit ee0971849e6110e14e10eaabb12b7adec7169668

Authored by bellard
1 parent 80337b66

Arm mulxy insn fix (Paul Brook)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1683 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-arm/translate.c
... ... @@ -1021,11 +1021,11 @@ static inline void gen_jmp (DisasContext *s, uint32_t dest)
1021 1021  
1022 1022 static inline void gen_mulxy(int x, int y)
1023 1023 {
1024   - if (x & 2)
  1024 + if (x)
1025 1025 gen_op_sarl_T0_im(16);
1026 1026 else
1027 1027 gen_op_sxth_T0();
1028   - if (y & 1)
  1028 + if (y)
1029 1029 gen_op_sarl_T1_im(16);
1030 1030 else
1031 1031 gen_op_sxth_T1();
... ...