aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-20 03:18:07 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-20 03:18:07 +0000
commitb40d0353b0d43517ba1ab1c07eb86a1cb27f87f9 (patch)
treebb74d63e4252e21a887004facdb64f9b52b1b45d /target-arm
parentFix pread() and pwrite() syscall on ARM EABI (Kirill Shutemov). (diff)
downloadqemu-kvm-b40d0353b0d43517ba1ab1c07eb86a1cb27f87f9.tar.gz
qemu-kvm-b40d0353b0d43517ba1ab1c07eb86a1cb27f87f9.tar.bz2
qemu-kvm-b40d0353b0d43517ba1ab1c07eb86a1cb27f87f9.zip
Fix QADD / QSUB decoding on ARM (Torbjörn Andersson).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5273 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm')
-rw-r--r--target-arm/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c
index 8381bccd6..836b356dc 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -5946,7 +5946,7 @@ static void disas_arm_insn(CPUState * env, DisasContext *s)
case 0x5: /* saturating add/subtract */
rd = (insn >> 12) & 0xf;
rn = (insn >> 16) & 0xf;
- tmp = load_reg(s, rn);
+ tmp = load_reg(s, rm);
tmp2 = load_reg(s, rn);
if (op1 & 2)
gen_helper_double_saturate(tmp2, tmp2);