hypervisor: emulator: Fix logic bug in MockVMM

emulate_first_insn() really means we want only the first instruction to
be emulated.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2020-11-28 00:35:58 +01:00
committed by Rob Bradford
parent 1ac4c42a84
commit 251434862f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -665,7 +665,7 @@ mod mock_vmm {
}
pub fn emulate_first_insn(&mut self, cpu_id: usize, insn: &[u8]) {
self.emulate_insn(cpu_id, insn, None)
self.emulate_insn(cpu_id, insn, Some(1))
}
}