HV: update opcode when decode_two_byte_opcode()

The vie->opcode should be updated when decode_two_byte_opcode(),
otherwise for two bytes opcode emulate(movzx/movsx) will fail.

Signed-off-by: Qi Yadong <yadong.qi@intel.com>
This commit is contained in:
Qi Yadong 2018-09-13 15:15:57 +08:00 committed by lijinxia
parent 5023937041
commit 8858634493

View File

@ -1778,6 +1778,7 @@ static int decode_two_byte_opcode(struct instr_emul_vie *vie)
return -1;
}
vie->opcode = x;
vie->op = two_byte_opcodes[x];
if (vie->op.op_type == VIE_OP_TYPE_NONE) {