summaryrefslogtreecommitdiff
path: root/src/cpu/minor
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-13 22:02:35 -0700
committerGabe Black <gabeblack@google.com>2019-10-25 22:42:31 +0000
commitc73c19effd8f7f9b6e2ec470f04b8f1f43ce7354 (patch)
tree9869a1a8c09c03a3354ef5efee23dd0e9d03fdd4 /src/cpu/minor
parentfea2af5b9c4599637866d0ce2dfc598296c19a5b (diff)
downloadgem5-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/minor')
-rw-r--r--src/cpu/minor/execute.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/minor/execute.cc b/src/cpu/minor/execute.cc
index 24506fceb..9317f61f4 100644
--- a/src/cpu/minor/execute.cc
+++ b/src/cpu/minor/execute.cc
@@ -870,7 +870,7 @@ Execute::doInstCommitAccounting(MinorDynInstPtr inst)
cpu.system->totalNumInsts++;
/* Act on events related to instruction counts */
- cpu.comInstEventQueue[inst->id.threadId]->serviceEvents(thread->numInst);
+ cpu.serviceInstCountEvents(inst->id.threadId, thread->numInst);
}
thread->numOp++;
thread->numOps++;