Skip to content

Commit

Permalink
KVM: x86 emulator: switch OpImmUByte decode to decode_imm()
Browse files Browse the repository at this point in the history
Similar to SrcImmUByte.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Avi Kivity committed Sep 25, 2011
1 parent 20c29ff commit 608aabe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3349,10 +3349,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
ctxt->twobyte && (ctxt->b == 0xb6 || ctxt->b == 0xb7));
break;
case OpImmUByte:
op->type = OP_IMM;
op->addr.mem.ea = ctxt->_eip;
op->bytes = 1;
op->val = insn_fetch(u8, ctxt);
rc = decode_imm(ctxt, op, 1, false);
break;
case OpMem:
case OpMem64:
Expand Down

0 comments on commit 608aabe

Please sign in to comment.