diff options
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r-- | src/cpu/base.hh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh index 65f596132..0a3600764 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -395,6 +395,36 @@ class BaseCPU : public MemObject virtual Counter totalOps() const = 0; + /** + * Schedule an event that exits the simulation loops after a + * predefined number of instructions. + * + * This method is usually called from the configuration script to + * get an exit event some time in the future. It is typically used + * when the script wants to simulate for a specific number of + * instructions rather than ticks. + * + * @param tid Thread monitor. + * @param insts Number of instructions into the future. + * @param cause Cause to signal in the exit event. + */ + void scheduleInstStop(ThreadID tid, Counter insts, const char *cause); + + /** + * Schedule an event that exits the simulation loops after a + * predefined number of load operations. + * + * This method is usually called from the configuration script to + * get an exit event some time in the future. It is typically used + * when the script wants to simulate for a specific number of + * loads rather than ticks. + * + * @param tid Thread monitor. + * @param loads Number of load instructions into the future. + * @param cause Cause to signal in the exit event. + */ + void scheduleLoadStop(ThreadID tid, Counter loads, const char *cause); + // Function tracing private: bool functionTracingEnabled; |