From 34212e29e4bea0a471bd8aaf3b878a0d0d056164 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 1 Apr 2007 16:23:36 +0000 Subject: [PATCH] Fix off-by-one error --- target-sparc/translate.c | 4 ++-- 1 file 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); -- 2.11.4.GIT