diff options
author | Gabe Black <gabeblack@google.com> | 2019-10-13 22:02:35 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-10-25 22:42:31 +0000 |
commit | c73c19effd8f7f9b6e2ec470f04b8f1f43ce7354 (patch) | |
tree | 9869a1a8c09c03a3354ef5efee23dd0e9d03fdd4 /src/cpu/o3 | |
parent | fea2af5b9c4599637866d0ce2dfc598296c19a5b (diff) | |
download | gem5-c73c19effd8f7f9b6e2ec470f04b8f1f43ce7354.tar.xz |
cpu: Make accesses to comInstEventQueue indirect through methods.
This lets us move the event queue itself around, or change how those
services are provided.
Change-Id: Ie36665b353cf9788968f253cf281a854a6eff4f4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22107
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/cpu/o3')
-rw-r--r-- | src/cpu/o3/cpu.cc | 2 | ||||
-rw-r--r-- | src/cpu/o3/probe/elastic_trace.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index 5871e6584..e49d4997e 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -1521,7 +1521,7 @@ FullO3CPU<Impl>::instDone(ThreadID tid, const DynInstPtr &inst) system->totalNumInsts++; // Check for instruction-count-based events. - comInstEventQueue[tid]->serviceEvents(thread[tid]->numInst); + serviceInstCountEvents(tid, thread[tid]->numInst); } thread[tid]->numOp++; thread[tid]->numOps++; diff --git a/src/cpu/o3/probe/elastic_trace.cc b/src/cpu/o3/probe/elastic_trace.cc index 36d8297d1..586688600 100644 --- a/src/cpu/o3/probe/elastic_trace.cc +++ b/src/cpu/o3/probe/elastic_trace.cc @@ -109,8 +109,8 @@ ElasticTrace::regProbeListeners() } else { // Schedule an event to register all elastic trace probes when // specified no. of instructions are committed. - cpu->comInstEventQueue[(ThreadID)0]->schedule(®EtraceListenersEvent, - startTraceInst); + cpu->scheduleInstCountEvent( + 0, ®EtraceListenersEvent, startTraceInst); } } |