diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/system.cc | 2 | ||||
-rw-r--r-- | sim/system.hh | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/system.cc b/sim/system.cc index fd80e23c3..e1e293c90 100644 --- a/sim/system.cc +++ b/sim/system.cc @@ -37,9 +37,11 @@ vector<System *> System::systemList; int System::numSystemsRunning = 0; System::System(const std::string _name, + const int _init_param, MemoryController *_memCtrl, PhysicalMemory *_physmem) : SimObject(_name), + init_param(_init_param), memCtrl(_memCtrl), physmem(_physmem) { diff --git a/sim/system.hh b/sim/system.hh index bec1011ce..56a3d6a6f 100644 --- a/sim/system.hh +++ b/sim/system.hh @@ -46,6 +46,7 @@ class ExecContext; class System : public SimObject { public: + const int init_param; MemoryController *memCtrl; PhysicalMemory *physmem; @@ -55,7 +56,8 @@ class System : public SimObject void registerExecContext(ExecContext *xc); public: - System(const std::string name, MemoryController *, PhysicalMemory *); + System(const std::string _name, const int _init_param, + MemoryController *, PhysicalMemory *); ~System(); virtual void init(ExecContext *xc) = 0; |