mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
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:
parent
6d63018d9f
commit
f4159ca016
@ -71,8 +71,6 @@ macro_rules! cmp_rm_r {
|
|||||||
|
|
||||||
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
|
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
|
||||||
|
|
||||||
state.set_ip(insn.ip());
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -95,8 +93,6 @@ macro_rules! cmp_r_rm {
|
|||||||
|
|
||||||
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
|
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
|
||||||
|
|
||||||
state.set_ip(insn.ip());
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -119,8 +115,6 @@ macro_rules! cmp_rm_imm {
|
|||||||
|
|
||||||
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
|
state.set_flags((state.flags() & !FLAGS_MASK) | cpazso);
|
||||||
|
|
||||||
state.set_ip(insn.ip());
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -39,8 +39,6 @@ macro_rules! mov_rm_r {
|
|||||||
)
|
)
|
||||||
.map_err(EmulationError::PlatformEmulationError)?;
|
.map_err(EmulationError::PlatformEmulationError)?;
|
||||||
|
|
||||||
state.set_ip(insn.ip());
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -67,8 +65,6 @@ macro_rules! mov_rm_imm {
|
|||||||
)
|
)
|
||||||
.map_err(EmulationError::PlatformEmulationError)?;
|
.map_err(EmulationError::PlatformEmulationError)?;
|
||||||
|
|
||||||
state.set_ip(insn.ip());
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -101,8 +97,6 @@ macro_rules! movzx {
|
|||||||
)
|
)
|
||||||
.map_err(EmulationError::PlatformEmulationError)?;
|
.map_err(EmulationError::PlatformEmulationError)?;
|
||||||
|
|
||||||
state.set_ip(insn.ip());
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -136,8 +130,6 @@ macro_rules! mov_r_imm {
|
|||||||
)
|
)
|
||||||
.map_err(EmulationError::PlatformEmulationError)?;
|
.map_err(EmulationError::PlatformEmulationError)?;
|
||||||
|
|
||||||
state.set_ip(insn.ip());
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user