Eden Avivi has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/33401 )

Change subject: cpu: convert thread_state to new style stats
......................................................................

cpu: convert thread_state to new style stats

Files that thread_state is dependent on with the changes

Change-Id: I37cf1f00ce058537c22bc76ffd9ca566557f8f87
---
M src/cpu/minor/execute.cc
M src/cpu/o3/cpu.cc
2 files changed, 4 insertions(+), 4 deletions(-)



diff --git a/src/cpu/minor/execute.cc b/src/cpu/minor/execute.cc
index 3c94531..4b2b6aa 100644
--- a/src/cpu/minor/execute.cc
+++ b/src/cpu/minor/execute.cc
@@ -865,7 +865,7 @@
if (!inst->staticInst->isMicroop() || inst->staticInst->isLastMicroop())
     {
         thread->numInst++;
-        thread->numInsts++;
+        thread->stats_thread.numInsts++;
         cpu.stats.numInsts++;
         cpu.system->totalNumInsts++;

@@ -873,7 +873,7 @@
         thread->comInstEventQueue.serviceEvents(thread->numInst);
     }
     thread->numOp++;
-    thread->numOps++;
+    thread->stats_thread.numOps++;
     cpu.stats.numOps++;
     cpu.stats.committedInstType[inst->id.threadId]
                                [inst->staticInst->opClass()]++;
diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc
index d911490..49d65ea 100644
--- a/src/cpu/o3/cpu.cc
+++ b/src/cpu/o3/cpu.cc
@@ -1513,7 +1513,7 @@
     // Keep an instruction count.
     if (!inst->isMicroop() || inst->isLastMicroop()) {
         thread[tid]->numInst++;
-        thread[tid]->numInsts++;
+        thread[tid]->stats_thread.numInsts++;
         committedInsts[tid]++;
         system->totalNumInsts++;

@@ -1521,7 +1521,7 @@
         thread[tid]->comInstEventQueue.serviceEvents(thread[tid]->numInst);
     }
     thread[tid]->numOp++;
-    thread[tid]->numOps++;
+    thread[tid]->stats_thread.numOps++;
     committedOps[tid]++;

     probeInstCommit(inst->staticInst, inst->instAddr());

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/33401
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I37cf1f00ce058537c22bc76ffd9ca566557f8f87
Gerrit-Change-Number: 33401
Gerrit-PatchSet: 1
Gerrit-Owner: Eden Avivi <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to