diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-14 20:17:03 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-14 20:17:03 +0000 |
commit | 18acad9250068365340a74ea9e5201a06fb01ff4 (patch) | |
tree | 5ffd2242c51338e2fbb12b6a93d7137350d79071 /target-arm/translate.c | |
parent | e55744879fa56bdd257beb05de3163c917470731 (diff) | |
download | qemu-18acad9250068365340a74ea9e5201a06fb01ff4.zip qemu-18acad9250068365340a74ea9e5201a06fb01ff4.tar.gz qemu-18acad9250068365340a74ea9e5201a06fb01ff4.tar.bz2 |
ARM doubleword post-modify fix (Daniel Jacobowitz).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2424 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/translate.c')
-rw-r--r-- | target-arm/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |