projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
358c360
)
target-i386: fix decoding of negative 4-byte displacements
author
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 4 Jun 2010 14:27:33 +0000
(16:27 +0200)
committer
Blue Swirl
<blauwirbel@gmail.com>
Fri, 4 Jun 2010 19:48:53 +0000
(19:48 +0000)
Negative four byte displacements need to be sign-extended after
c086b783eb7a578993d6d2ab62c4c2666800b63d
. Do so.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-i386/translate.c
patch
|
blob
|
history
diff --git
a/target-i386/translate.c
b/target-i386/translate.c
index 38c6016574011e2ebddbe2d5fa372acaaf5e235c..708b0a11e9407fd6e8031273189b7b734a676798 100644
(file)
--- a/
target-i386/translate.c
+++ b/
target-i386/translate.c
@@
-2016,7
+2016,7
@@
static void gen_lea_modrm(DisasContext *s, int modrm, int *reg_ptr, int *offset_
break;
default:
case 2:
- disp = ldl_code(s->pc);
+ disp =
(int32_t)
ldl_code(s->pc);
s->pc += 4;
break;
}