summaryrefslogtreecommitdiff
path: root/src/cpu/func_unit.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-07-30 03:41:22 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2015-07-30 03:41:22 -0400
commit85a44e24dcca5282e68935f5804781e5ae312558 (patch)
tree96910a94f3961312da4ef0aae147895ee84dc91a /src/cpu/func_unit.cc
parentaafa5c3f86ea54f5e6e88009be656aeec12eef5f (diff)
downloadgem5-85a44e24dcca5282e68935f5804781e5ae312558.tar.xz
cpu: Fix issue identified by UBSan
Diffstat (limited to 'src/cpu/func_unit.cc')
-rw-r--r--src/cpu/func_unit.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/func_unit.cc b/src/cpu/func_unit.cc
index 6d009a440..3c2f1049d 100644
--- a/src/cpu/func_unit.cc
+++ b/src/cpu/func_unit.cc
@@ -42,6 +42,8 @@ using namespace std;
//
FuncUnit::FuncUnit()
{
+ opLatencies.fill(0);
+ pipelined.fill(false);
capabilityList.reset();
}