summaryrefslogtreecommitdiff
path: root/src/sim/voltage_domain.hh
diff options
context:
space:
mode:
authorAndreas Hansson <Andreas.Hansson@ARM.com>2014-01-24 15:29:30 -0600
committerAndreas Hansson <Andreas.Hansson@ARM.com>2014-01-24 15:29:30 -0600
commit4de69821e630576f40c55a26355ed1064c6a233c (patch)
treeaf3ffe39108110079b16667f51c5611182addf42 /src/sim/voltage_domain.hh
parent1d85e914a6b7a9b3550e84d2006ba775a27a0a44 (diff)
downloadgem5-4de69821e630576f40c55a26355ed1064c6a233c.tar.xz
sim: Expose the current voltage for each object as a stat
Diffstat (limited to 'src/sim/voltage_domain.hh')
-rw-r--r--src/sim/voltage_domain.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/voltage_domain.hh b/src/sim/voltage_domain.hh
index 585ec8d66..b2f6715cf 100644
--- a/src/sim/voltage_domain.hh
+++ b/src/sim/voltage_domain.hh
@@ -60,6 +60,11 @@ class VoltageDomain : public SimObject
*/
double _voltage;
+ /**
+ * Stat for reporting voltage of the domain
+ */
+ Stats::Value currentVoltage;
+
public:
typedef VoltageDomainParams Params;
@@ -79,6 +84,8 @@ class VoltageDomain : public SimObject
*/
void voltage(double voltage);
+ void regStats();
+
};
#endif