From f600cff5c265bc69048bfd71c31434de3f34b204 Mon Sep 17 00:00:00 2001 From: Andrew Schultz Date: Tue, 21 Oct 2003 17:18:17 -0400 Subject: Created new M5 instruction to allow an integer parameter (init_param) to be specified in the INI and then read inside the simulator. arch/alpha/isa_desc: Added new M5FUNC instruction to put allow reading of init_param inside simulator kern/tru64/tru64_system.cc: kern/tru64/tru64_system.hh: sim/system.cc: sim/system.hh: Added support for init_param --HG-- extra : convert_revision : 8253f0b4239b194d4f04665c9deec1fcdf665c8a --- sim/system.cc | 2 ++ sim/system.hh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sim') 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::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; -- cgit v1.2.3