diff options
author | Avi Kivity <avi@redhat.com> | 2009-05-18 09:15:20 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:40 -0400 |
commit | ee3d29e8bee8d7c321279a9bd9bd25d4cfbf79b7 (patch) | |
tree | 4c058ba4841490e862dcbd5b68a303b517efddca | |
parent | c9eaf20f268c7051bfde2ba212c5ea76a6cbc7a1 (diff) |
KVM: x86 emulator: fix jmp far decoding (opcode 0xea)
The jump target should not be sign extened; use an unsigned decode flag.
Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/x86_emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index a30d5fc17eef..ef4dfca3ed7e 100644 --- a/arch/x86/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c | |||
@@ -196,7 +196,7 @@ static u32 opcode_table[256] = { | |||
196 | ByteOp | SrcImmUByte, SrcImmUByte, | 196 | ByteOp | SrcImmUByte, SrcImmUByte, |
197 | /* 0xE8 - 0xEF */ | 197 | /* 0xE8 - 0xEF */ |
198 | SrcImm | Stack, SrcImm | ImplicitOps, | 198 | SrcImm | Stack, SrcImm | ImplicitOps, |
199 | SrcImm | Src2Imm16, SrcImmByte | ImplicitOps, | 199 | SrcImmU | Src2Imm16, SrcImmByte | ImplicitOps, |
200 | SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps, | 200 | SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps, |
201 | SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps, | 201 | SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps, |
202 | /* 0xF0 - 0xF7 */ | 202 | /* 0xF0 - 0xF7 */ |