KVM: x86 emulator: switch OpImmUByte decode to decode_imm()
Similar to SrcImmUByte. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
20c29ff205
commit
608aabe316
1 changed files with 1 additions and 4 deletions
|
@ -3349,10 +3349,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
|
||||||
ctxt->twobyte && (ctxt->b == 0xb6 || ctxt->b == 0xb7));
|
ctxt->twobyte && (ctxt->b == 0xb6 || ctxt->b == 0xb7));
|
||||||
break;
|
break;
|
||||||
case OpImmUByte:
|
case OpImmUByte:
|
||||||
op->type = OP_IMM;
|
rc = decode_imm(ctxt, op, 1, false);
|
||||||
op->addr.mem.ea = ctxt->_eip;
|
|
||||||
op->bytes = 1;
|
|
||||||
op->val = insn_fetch(u8, ctxt);
|
|
||||||
break;
|
break;
|
||||||
case OpMem:
|
case OpMem:
|
||||||
case OpMem64:
|
case OpMem64:
|
||||||
|
|
Loading…
Reference in a new issue