From 18acad9250068365340a74ea9e5201a06fb01ff4 Mon Sep 17 00:00:00 2001 From: pbrook Date: Wed, 14 Feb 2007 20:17:03 +0000 Subject: ARM doubleword post-modify fix (Daniel Jacobowitz). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2424 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-arm/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-arm/translate.c') diff --git a/target-arm/translate.c b/target-arm/translate.c index cd91bdc..cf46e34 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -391,9 +391,9 @@ static inline void gen_add_datah_offset(DisasContext *s, unsigned int insn, if (insn & (1 << 22)) { /* immediate */ val = (insn & 0xf) | ((insn >> 4) & 0xf0); - val += extra; if (!(insn & (1 << 23))) val = -val; + val += extra; if (val != 0) gen_op_addl_T1_im(val); } else { -- cgit v1.1