lkml.org 
[lkml]   [2009]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/48] KVM: x86 emulator: fix jmp far decoding (opcode 0xea)
    Date
    The jump target should not be sign extened; use an unsigned decode flag.

    Signed-off-by: Avi Kivity <avi@redhat.com>
    ---
    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 a30d5fc..ef4dfca 100644
    --- a/arch/x86/kvm/x86_emulate.c
    +++ b/arch/x86/kvm/x86_emulate.c
    @@ -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 */
    --
    1.6.3.3


    \
     
     \ /
      Last update: 2009-08-16 11:57    [W:0.044 / U:1.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site