diff options
author | David Guillen Fandos <david.guillen@arm.com> | 2015-05-12 10:26:47 +0100 |
---|---|---|
committer | David Guillen Fandos <david.guillen@arm.com> | 2015-05-12 10:26:47 +0100 |
commit | 75c82f1fe3e654ca7d472d8f824424ff450c01d1 (patch) | |
tree | b07198404e3647302cc66e800fb7bf1fcdad01fa /src/sim/sub_system.hh | |
parent | 85dadcd38133252652686b92c52cc6a38c90331c (diff) | |
download | gem5-75c82f1fe3e654ca7d472d8f824424ff450c01d1.tar.xz |
sim: Adding thermal model support
This patch adds basic thermal support to gem5. It models energy dissipation
through a circuital equivalent, which allows us to use RC networks.
This lays down the basic infrastructure to do so, but it does not "work" due
to the lack of power models. For now some hardcoded number is used as a PoC.
The solver is embedded in the patch.
Diffstat (limited to 'src/sim/sub_system.hh')
-rw-r--r-- | src/sim/sub_system.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sim/sub_system.hh b/src/sim/sub_system.hh index bb47ed2f9..6e35be676 100644 --- a/src/sim/sub_system.hh +++ b/src/sim/sub_system.hh @@ -45,6 +45,8 @@ #ifndef __SIM_SUB_SYSTEM_HH__ #define __SIM_SUB_SYSTEM_HH__ +#include "params/SubSystem.hh" +#include "sim/power/thermal_domain.hh" #include "sim/sim_object.hh" /** @@ -54,9 +56,8 @@ class SubSystem : public SimObject { public: - SubSystem(const Params *p) : - SimObject(p) - {} + typedef SubSystemParams Params; + SubSystem(const Params *p); }; #endif |