summaryrefslogtreecommitdiff
path: root/src/cpu/o3/cpu.hh
diff options
context:
space:
mode:
authorClint Smullen <cws3k@cs.virginia.edu>2008-11-10 11:51:18 -0800
committerClint Smullen <cws3k@cs.virginia.edu>2008-11-10 11:51:18 -0800
commit1adfe5c7f3368c4225ff685ddcd66b6280c7599f (patch)
tree8732797923445ea09d9eac84ff371a33cef2d171 /src/cpu/o3/cpu.hh
parent9c49bc7b00aa24b0488a83039ae8762d8f8094c5 (diff)
downloadgem5-1adfe5c7f3368c4225ff685ddcd66b6280c7599f.tar.xz
O3CPU: Make the instcount debugging stuff per-cpu.
This is to prevent the assertion from firing if you have a large multicore. Also make sure that it's not compiled in when NDEBUG is defined
Diffstat (limited to 'src/cpu/o3/cpu.hh')
-rw-r--r--src/cpu/o3/cpu.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cpu/o3/cpu.hh b/src/cpu/o3/cpu.hh
index c60c20d55..d24e8c383 100644
--- a/src/cpu/o3/cpu.hh
+++ b/src/cpu/o3/cpu.hh
@@ -576,6 +576,11 @@ class FullO3CPU : public BaseO3CPU
void dumpInsts();
public:
+#ifndef NDEBUG
+ /** Count of total number of dynamic instructions in flight. */
+ int instcount;
+#endif
+
/** List of all the instructions in flight. */
std::list<DynInstPtr> instList;