mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-27 15:56:54 +00:00
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:
parent
5023937041
commit
8858634493
@ -1778,6 +1778,7 @@ static int decode_two_byte_opcode(struct instr_emul_vie *vie)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vie->opcode = x;
|
||||||
vie->op = two_byte_opcodes[x];
|
vie->op = two_byte_opcodes[x];
|
||||||
|
|
||||||
if (vie->op.op_type == VIE_OP_TYPE_NONE) {
|
if (vie->op.op_type == VIE_OP_TYPE_NONE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user