pub fn continue_simulation(steps: i64) -> Result<PcStep>
Expand description
Continue the simulation.
Run the simulation. In typical usage with steps being 0, the simulation will run forward until it is stopped, either by a breakpoint, internal event, or through the user interface.
With a non-zero steps, Simics will make sure that at least one processor runs steps steps and then stop the simulation. As with steps being 0, the function can also return early if other break criteria are met.
In order to properly control when simulation stops in time, it is advisable to use step or cycle breakpoints on one or more objects.
The function returns non-zero if the simulation was started, and 0 otherwise.
This typically needs to be run in global scope using:
ⓘ
use simics::api::{continue_simulation, run_alone};
run_alone(|| { continue_simulation(); });
§Arguments
steps
- Zero to run until stopped, or a number of steps to cintinue for
§Context
Global Context