aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-01 16:23:36 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-01 16:23:36 +0000
commit4f14e88c5991877085b1090508ee222d6f3ef088 (patch)
treed1146ea242475238f74be6fe9e408a10aaccf00f /target-sparc
parent52cc07d04774676c69e3998cdb5d10c8f5286072 (diff)
downloadqemu-4f14e88c5991877085b1090508ee222d6f3ef088.zip
qemu-4f14e88c5991877085b1090508ee222d6f3ef088.tar.gz
qemu-4f14e88c5991877085b1090508ee222d6f3ef088.tar.bz2
Fix off-by-one error
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2573 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-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 c5cb2d0..9f2d249 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);