diff options
author | Gabe Black <gabeblack@google.com> | 2019-10-09 22:29:36 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-10-17 22:00:16 +0000 |
commit | e86ad367b7cd7ef863542f3848d9233133fbddd9 (patch) | |
tree | ad96604f540ffc6830c0bca17f197ce80fa3c328 /src/cpu/base.hh | |
parent | e04e976e22be76e13eacd45b33f71eb85cefd81e (diff) | |
download | gem5-e86ad367b7cd7ef863542f3848d9233133fbddd9.tar.xz |
cpu: Get rid of load count based events.
This was initially added in 2003 and only supported in the simple CPUs.
It's oddly specific since there are no other similar event queues for,
for instance, stores, branches, system calls, etc.
Given that this seems like a historical oddity which is only partially
supported and would be very hard to support on more diverse CPU types
like KVM or fast model which don't generally have hooks for counts of
specific instruction types.
Change-Id: I29209b7ffcf896cf424b71545c9c7546f439e2b9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21780
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r-- | src/cpu/base.hh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh index dfee21fab..383ae8185 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -390,13 +390,6 @@ class BaseCPU : public ClockedObject */ EventQueue **comInstEventQueue; - /** - * Vector of per-thread load-based event queues. Used for - * scheduling events based on number of loads committed by - *a particular thread. - */ - EventQueue **comLoadEventQueue; - System *system; /** @@ -464,21 +457,6 @@ class BaseCPU : public ClockedObject 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); - - /** * Get the number of instructions executed by the specified thread * on this CPU. Used by Python to control simulation. * |