Skip to content

Commit

Permalink
Fix off-by-one error
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2573 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
blueswir1 committed Apr 1, 2007
1 parent 52cc07d commit 4f14e88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target-sparc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2331,8 +2331,8 @@ static void disas_sparc_insn(DisasContext * dc)
#endif
}
if (xop < 4 || (xop > 7 && xop < 0x14 && xop != 0x0e) || \
(xop > 0x17 && xop < 0x1d ) || \
(xop > 0x2c && xop < 0x33) || xop == 0x1f) {
(xop > 0x17 && xop <= 0x1d ) || \
(xop > 0x2c && xop <= 0x33) || xop == 0x1f) {
switch (xop) {
case 0x0: /* load word */
gen_op_ldst(ld);
Expand Down

0 comments on commit 4f14e88

Please sign in to comment.