Commit 4f14e88c5991877085b1090508ee222d6f3ef088

Authored by blueswir1
1 parent 52cc07d0

Fix off-by-one error


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2573 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-sparc/translate.c
... ... @@ -2331,8 +2331,8 @@ static void disas_sparc_insn(DisasContext * dc)
2331 2331 #endif
2332 2332 }
2333 2333 if (xop < 4 || (xop > 7 && xop < 0x14 && xop != 0x0e) || \
2334   - (xop > 0x17 && xop < 0x1d ) || \
2335   - (xop > 0x2c && xop < 0x33) || xop == 0x1f) {
  2334 + (xop > 0x17 && xop <= 0x1d ) || \
  2335 + (xop > 0x2c && xop <= 0x33) || xop == 0x1f) {
2336 2336 switch (xop) {
2337 2337 case 0x0: /* load word */
2338 2338 gen_op_ldst(ld);
... ...