lkml.org 
[lkml]   [2014]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 24/25] KVM: emulate: simplify BitOp handling
    Date
    Memory is always the destination for BitOp instructions.

    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    ---
    arch/x86/kvm/emulate.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
    index 6b44f90a9bb0..2e8f0e674616 100644
    --- a/arch/x86/kvm/emulate.c
    +++ b/arch/x86/kvm/emulate.c
    @@ -4145,7 +4145,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
    mem_common:
    *op = ctxt->memop;
    ctxt->memopp = op;
    - if ((ctxt->d & BitOp) && op == &ctxt->dst)
    + if (ctxt->d & BitOp)
    fetch_bit_operand(ctxt);
    op->orig_val = op->val;
    break;
    --
    1.8.3.1



    \
     
     \ /
      Last update: 2014-06-09 15:41    [W:4.397 / U:0.432 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site