mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
1) For some instructions (like movsx, movzx which we support), there're two operands and the source operand size is not equal to the dest operand size. In this case, if we update the memory operand size according to the bit 0(w bit) of opcode, we will lost the register operand size. This patch tries to fix this by calculating memory operand size when we want to use it. 2) Calculate memory operand size form operand size and the bit 0(w bit) of opcode when we want to operate on memory operand. Tracked-On: #1337 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>