summaryrefslogtreecommitdiff
path: root/cpu/base_cpu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/base_cpu.cc')
-rw-r--r--cpu/base_cpu.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpu/base_cpu.cc b/cpu/base_cpu.cc
index 01040015c..643a2b652 100644
--- a/cpu/base_cpu.cc
+++ b/cpu/base_cpu.cc
@@ -54,11 +54,12 @@ int maxThreadsPerCPU = 1;
extern void debug_break();
#ifdef FULL_SYSTEM
BaseCPU::BaseCPU(Params *p)
- : SimObject(p->name), frequency(p->freq), checkInterrupts(true),
+ : SimObject(p->name), cycleTime(p->cycleTime), checkInterrupts(true),
params(p), number_of_threads(p->numberOfThreads), system(p->system)
#else
BaseCPU::BaseCPU(Params *p)
- : SimObject(p->name), params(p), number_of_threads(p->numberOfThreads)
+ : SimObject(p->name), cycleTime(p->cycleTime), params(p),
+ number_of_threads(p->numberOfThreads)
#endif
{
DPRINTF(FullCPU, "BaseCPU: Creating object, mem address %#x.\n", this);