mirror of
https://github.com/xemu-project/xemu.git
synced 2025-01-31 17:23:53 +00:00
target-i386: fix decoding of negative 4-byte displacements
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>
This commit is contained in:
parent
358c360feb
commit
8c0e6340fb
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user