diff options
Diffstat (limited to 'src/sim/power')
-rw-r--r-- | src/sim/power/thermal_model.cc | 2 | ||||
-rw-r--r-- | src/sim/power/thermal_model.hh | 2 |
2 files changed, 2 insertions, 2 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) { } diff --git a/src/sim/power/thermal_model.hh b/src/sim/power/thermal_model.hh index 7ee4ffdc3..b47061dbf 100644 --- a/src/sim/power/thermal_model.hh +++ b/src/sim/power/thermal_model.hh @@ -179,7 +179,7 @@ class ThermalModel : public ClockedObject std::vector <ThermalNode*> eq_nodes; /** Stepping event to update the model values */ - EventWrapper<ThermalModel, &ThermalModel::doStep> stepEvent; + EventFunctionWrapper stepEvent; /** Step in seconds for thermal updates */ double _step; |