From 49214cf02b9001c60fd9ec9e4400d6a8ffc83b6b Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 22 Feb 2021 23:54:12 +0000 Subject: [PATCH] hypervisor: emulator: fix MOVZX According to Intel's mnemonic (which is used by iced-x86) the first argument is destination while the second is source. Signed-off-by: Wei Liu --- hypervisor/src/arch/x86/emulator/instructions/mov.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/src/arch/x86/emulator/instructions/mov.rs b/hypervisor/src/arch/x86/emulator/instructions/mov.rs index a6210e350..b5f45d10e 100644 --- a/hypervisor/src/arch/x86/emulator/instructions/mov.rs +++ b/hypervisor/src/arch/x86/emulator/instructions/mov.rs @@ -71,7 +71,7 @@ macro_rules! mov_rm_imm { } macro_rules! movzx { - ($src_op_size:ty, $dest_op_size:ty) => { + ($dest_op_size:ty, $src_op_size:ty) => { fn emulate( &self, insn: &Instruction,