diff options
Diffstat (limited to 'src/sim/sub_system.cc')
-rw-r--r-- | src/sim/sub_system.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sim/sub_system.cc b/src/sim/sub_system.cc index e6e119b35..771590cf7 100644 --- a/src/sim/sub_system.cc +++ b/src/sim/sub_system.cc @@ -39,6 +39,15 @@ #include "params/SubSystem.hh" #include "sim/sub_system.hh" +#include "sim/power/thermal_domain.hh" + +SubSystem::SubSystem(const Params *p) + : SimObject(p) +{ + // Link thermalDomain <-> SubSystem + if (p->thermal_domain) + p->thermal_domain->setSubSystem(this); +} SubSystem * SubSystemParams::create() |