summaryrefslogtreecommitdiff
path: root/cpu/base_cpu.cc
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-01-11 19:00:16 -0500
committerKevin Lim <ktlim@umich.edu>2005-01-11 19:00:16 -0500
commit42f3b4ffb3fedcb70e9ff068ed7160dc6020b8c4 (patch)
treeba3d10f448bec63df45dff3bb7f2d6fbd6dcf9c7 /cpu/base_cpu.cc
parent202758eea20c092bb85d1886898c3816f377d288 (diff)
parent90d4436351620bd3861013333aabd152d5492df7 (diff)
downloadgem5-42f3b4ffb3fedcb70e9ff068ed7160dc6020b8c4.tar.xz
Merge changes.
base/traceflags.py: Merge extra new CPU flags cpu/static_inst.hh: Include all the execute functions in static_inst_impl.hh --HG-- extra : convert_revision : 78eb753bf709d37400e7c2418bb35d842d7c3f63
Diffstat (limited to 'cpu/base_cpu.cc')
-rw-r--r--cpu/base_cpu.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpu/base_cpu.cc b/cpu/base_cpu.cc
index 7605ff3c3..2275f12e3 100644
--- a/cpu/base_cpu.cc
+++ b/cpu/base_cpu.cc
@@ -38,6 +38,8 @@
#include "sim/param.hh"
#include "sim/sim_events.hh"
+#include "base/trace.hh"
+
using namespace std;
vector<BaseCPU *> BaseCPU::cpuList;
@@ -47,6 +49,7 @@ vector<BaseCPU *> BaseCPU::cpuList;
// been initialized
int maxThreadsPerCPU = 1;
+extern void debug_break();
#ifdef FULL_SYSTEM
BaseCPU::BaseCPU(const string &_name, int _number_of_threads, bool _def_reg,
Counter max_insts_any_thread,
@@ -69,9 +72,16 @@ BaseCPU::BaseCPU(const string &_name, int _number_of_threads, bool _def_reg,
number_of_threads(_number_of_threads)
#endif
{
+ DPRINTF(FullCPU, "BaseCPU: Creating object, mem address %#x.\n", this);
+
+ debug_break();
+
// add self to global list of CPUs
cpuList.push_back(this);
+ DPRINTF(FullCPU, "BaseCPU: CPU added to cpuList, mem address %#x.\n",
+ this);
+
if (number_of_threads > maxThreadsPerCPU)
maxThreadsPerCPU = number_of_threads;