diff options
author | Anouk Van Laer <anouk.vanlaer@arm.com> | 2017-03-01 17:05:18 +0000 |
---|---|---|
committer | Anouk Van Laer <anouk.vanlaer@arm.com> | 2018-02-28 21:55:35 +0000 |
commit | ed0f02e1f68e8771f4de514716f34c3de32b3045 (patch) | |
tree | b9dafb62a24ee3e7c876c255b245123a736c2ab2 /src/sim/power/power_model.hh | |
parent | fbe63074e3a8128bdbe1a5e8f6509c565a3abbd4 (diff) | |
download | gem5-ed0f02e1f68e8771f4de514716f34c3de32b3045.tar.xz |
sim: Added model type to power model
Static, dynamic or all to differentiate between types of power models
so for example static models will not be asked for a dynamic power
Change-Id: I3a0385821f7c671aedddaebeb038c677367faa81
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/8601
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/sim/power/power_model.hh')
-rw-r--r-- | src/sim/power/power_model.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sim/power/power_model.hh b/src/sim/power/power_model.hh index 976c0543f..e482b8005 100644 --- a/src/sim/power/power_model.hh +++ b/src/sim/power/power_model.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 ARM Limited + * Copyright (c) 2016, 2018 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -41,6 +41,7 @@ #define __SIM_POWER_POWER_MODEL_HH__ #include "base/statistics.hh" +#include "enums/PMType.hh" #include "params/PowerModel.hh" #include "params/PowerModelState.hh" #include "sim/probe/probe.hh" @@ -184,6 +185,9 @@ class PowerModel : public SimObject /** The clocked object we belong to */ ClockedObject * clocked_object; + + /** The type of power model - collects all power, static or dynamic only */ + Enums::PMType power_model_type; }; #endif |