hypervisor: emulator: drop useless set_ip calls

The instruction pointer is already pointing at the instruction being
emulated.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2020-12-30 20:31:20 +00:00 committed by Rob Bradford
parent 6d63018d9f
commit f4159ca016
2 changed files with 0 additions and 14 deletions

View File

@ -71,8 +71,6 @@ macro_rules! cmp_rm_r {
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
state.set_ip(insn.ip());
Ok(())
}
};
@ -95,8 +93,6 @@ macro_rules! cmp_r_rm {
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
state.set_ip(insn.ip());
Ok(())
}
};
@ -119,8 +115,6 @@ macro_rules! cmp_rm_imm {
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
state.set_ip(insn.ip());
Ok(())
}
};

View File

@ -39,8 +39,6 @@ macro_rules! mov_rm_r {
)
.map_err(EmulationError::PlatformEmulationError)?;
state.set_ip(insn.ip());
Ok(())
}
};
@ -67,8 +65,6 @@ macro_rules! mov_rm_imm {
)
.map_err(EmulationError::PlatformEmulationError)?;
state.set_ip(insn.ip());
Ok(())
}
};
@ -101,8 +97,6 @@ macro_rules! movzx {
)
.map_err(EmulationError::PlatformEmulationError)?;
state.set_ip(insn.ip());
Ok(())
}
};
@ -136,8 +130,6 @@ macro_rules! mov_r_imm {
)
.map_err(EmulationError::PlatformEmulationError)?;
state.set_ip(insn.ip());
Ok(())
}
};