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