diff options
Diffstat (limited to 'cpu/base_cpu.cc')
-rw-r--r-- | cpu/base_cpu.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpu/base_cpu.cc b/cpu/base_cpu.cc index 9d94c575c..1077c8a51 100644 --- a/cpu/base_cpu.cc +++ b/cpu/base_cpu.cc @@ -40,6 +40,8 @@ #include "sim/param.hh" #include "sim/sim_events.hh" +#include "base/trace.hh" + using namespace std; vector<BaseCPU *> BaseCPU::cpuList; @@ -59,9 +61,14 @@ BaseCPU::BaseCPU(Params *p) number_of_threads(p->numberOfThreads) #endif { + DPRINTF(FullCPU, "BaseCPU: Creating object, mem address %#x.\n", this); + // 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; |