Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 608aabe3 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: switch OpImmUByte decode to decode_imm()



Similar to SrcImmUByte.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 20c29ff2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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: