KVM: x86 emulator: fix jmp far decoding (opcode 0xea)
authorAvi Kivity <avi@redhat.com>
Mon, 18 May 2009 13:15:20 +0000 (16:15 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:40 +0000 (08:32 +0300)
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>
arch/x86/kvm/x86_emulate.c

index a30d5fc17eefd405fdea69d71dcc59fff692ab33..ef4dfca3ed7e6aba4ca2c742071b83067171e3dd 100644 (file)
@@ -196,7 +196,7 @@ static u32 opcode_table[256] = {
        ByteOp | SrcImmUByte, SrcImmUByte,
        /* 0xE8 - 0xEF */
        SrcImm | Stack, SrcImm | ImplicitOps,
-       SrcImm | Src2Imm16, SrcImmByte | ImplicitOps,
+       SrcImmU | Src2Imm16, SrcImmByte | ImplicitOps,
        SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps,
        SrcNone | ByteOp | ImplicitOps, SrcNone | ImplicitOps,
        /* 0xF0 - 0xF7 */