From: Kevin Lim Date: Tue, 22 Feb 2005 21:03:30 +0000 (-0500) Subject: Merge ktlim@zizzer.eecs.umich.edu:/bk/m5 X-Git-Tag: m5_1.0_tutorial~76^2~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8a564b0fdd8c5b6ae8f73613e3ad25005556ec5;p=gem5.git Merge ktlim@zizzer.eecs.umich.edu:/bk/m5 into zamp.eecs.umich.edu:/z/ktlim2/m5 --HG-- extra : convert_revision : 8a558785c64b7c33e64523d3d887ea6e760c3d2b --- e8a564b0fdd8c5b6ae8f73613e3ad25005556ec5 diff --cc cpu/base_cpu.cc index d653baa29,a17edd371..d1b445287 --- a/cpu/base_cpu.cc +++ b/cpu/base_cpu.cc @@@ -50,33 -48,15 +50,20 @@@ vector 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, - Counter max_insts_all_threads, - Counter max_loads_any_thread, - Counter max_loads_all_threads, - System *_system, Tick freq, - bool _function_trace, Tick _function_trace_start) - : SimObject(_name), frequency(freq), checkInterrupts(true), - deferRegistration(_def_reg), number_of_threads(_number_of_threads), - system(_system) + BaseCPU::BaseCPU(Params *p) + : SimObject(p->name), frequency(p->freq), checkInterrupts(true), + params(p), number_of_threads(p->numberOfThreads), system(p->system) #else - BaseCPU::BaseCPU(const string &_name, int _number_of_threads, bool _def_reg, - Counter max_insts_any_thread, - Counter max_insts_all_threads, - Counter max_loads_any_thread, - Counter max_loads_all_threads, - bool _function_trace, Tick _function_trace_start) - : SimObject(_name), deferRegistration(_def_reg), - number_of_threads(_number_of_threads) + BaseCPU::BaseCPU(Params *p) + : SimObject(p->name), params(p), number_of_threads(p->numberOfThreads) #endif { + DPRINTF(FullCPU, "BaseCPU: Creating object, mem address %#x.\n", this); + + debug_break(); + // add self to global list of CPUs cpuList.push_back(this);