diff options
author | Sean Wilson <spwilson2@wisc.edu> | 2017-06-08 11:35:45 -0500 |
---|---|---|
committer | Sean Wilson <spwilson2@wisc.edu> | 2017-06-20 18:03:21 +0000 |
commit | 85e1a9b8548ca2df406fd1ff56568a7ee1481aa0 (patch) | |
tree | a064cb48f30a9c8af954f2a87efa24ba9965ca15 /src/sim/power | |
parent | c8668a663992264911545f8001d462e0885b114c (diff) | |
download | gem5-85e1a9b8548ca2df406fd1ff56568a7ee1481aa0.tar.xz |
sim, x86: Replace EventWrapper use with EventFunctionWrapper
Change-Id: Ie1df07b70776208fc3631a73d403024636fc05a9
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3749
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
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; |