summaryrefslogtreecommitdiff
path: root/src/sim/power/thermal_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/power/thermal_model.cc')
-rw-r--r--src/sim/power/thermal_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/power/thermal_model.cc b/src/sim/power/thermal_model.cc
index 05ce42bc9..d362da680 100644
--- a/src/sim/power/thermal_model.cc
+++ b/src/sim/power/thermal_model.cc
@@ -194,7 +194,7 @@ ThermalCapacitor::getEquation(ThermalNode * n, unsigned nnodes,
* ThermalModel
*/
ThermalModel::ThermalModel(const Params *p)
- : ClockedObject(p), stepEvent(this), _step(p->step)
+ : ClockedObject(p), stepEvent([this]{ doStep(); }, name()), _step(p->step)
{
}