diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-09 04:36:31 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-09 04:36:31 -0400 |
commit | da4539dc749c3d29c03de9b3130f1c9a7266be9d (patch) | |
tree | c58cfe7bb1b489f440883cb4ec8a2a25e546aa20 /src/sim/dvfs_handler.hh | |
parent | 346fe7337009980566e023a60a09391ed893a5c0 (diff) | |
download | gem5-da4539dc749c3d29c03de9b3130f1c9a7266be9d.tar.xz |
misc: Fix a number of unitialised variables and members
Static analysis unearther a bunch of uninitialised variables and
members, and this patch addresses the problem. In all cases these
omissions seem benign in the end, but at least fixing them means less
false positives next time round.
Diffstat (limited to 'src/sim/dvfs_handler.hh')
-rw-r--r-- | src/sim/dvfs_handler.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim/dvfs_handler.hh b/src/sim/dvfs_handler.hh index ba8ed3e8e..c8d962133 100644 --- a/src/sim/dvfs_handler.hh +++ b/src/sim/dvfs_handler.hh @@ -191,7 +191,8 @@ class DVFSHandler : public SimObject * for a future call to change a domain's performance level. */ struct UpdateEvent : public Event { - UpdateEvent() : Event(DVFS_Update_Pri) {} + UpdateEvent() : Event(DVFS_Update_Pri), domainIDToSet(0), + perfLevelToSet(0) {} /** * Static pointer to the single DVFS hander for all the update events |