Commit 18acad9250068365340a74ea9e5201a06fb01ff4
1 parent
e5574487
ARM doubleword post-modify fix (Daniel Jacobowitz).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2424 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-arm/translate.c
| ... | ... | @@ -391,9 +391,9 @@ static inline void gen_add_datah_offset(DisasContext *s, unsigned int insn, |
| 391 | 391 | if (insn & (1 << 22)) { |
| 392 | 392 | /* immediate */ |
| 393 | 393 | val = (insn & 0xf) | ((insn >> 4) & 0xf0); |
| 394 | - val += extra; | |
| 395 | 394 | if (!(insn & (1 << 23))) |
| 396 | 395 | val = -val; |
| 396 | + val += extra; | |
| 397 | 397 | if (val != 0) |
| 398 | 398 | gen_op_addl_T1_im(val); |
| 399 | 399 | } else { | ... | ... |