Function simics::api::simulator::control::break_simulation

source ·
pub fn break_simulation<S>(msg: S) -> Result<()>
where S: AsRef<str>,
Expand description

Stop the simulation with a message

Ask Simics to stop the simulation as soon as possible, displaying the supplied message.

Simics will normally stop before the next instruction is executed. If this function is called when an instruction has started executing, and the instruction can be aborted, it will rewind to before the instruction. This might leave the simulation in a state where some repeatable part of the instruction is already executed.

§Context

Cell Context