diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-05-05 03:22:19 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-05-05 03:22:19 -0400 |
commit | d0d933facc9085727c12f53de76a2cb879ded4c8 (patch) | |
tree | 6f4bbec33f85ff63e9804cafa00a735cad31c551 /src/cpu/minor | |
parent | eb1a9977bfcf53652cc7ddbb948ed63262b794be (diff) | |
download | gem5-d0d933facc9085727c12f53de76a2cb879ded4c8.tar.xz |
cpu: Work around gcc 4.9 issues with Num_OpClasses
This patch fixes a recent issue with gcc 4.9 (and possibly more) being
convinced that indices outside the array bounds are used when
initialising the FUPool members.
Diffstat (limited to 'src/cpu/minor')
-rw-r--r-- | src/cpu/minor/execute.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/minor/execute.cc b/src/cpu/minor/execute.cc index 706fdf010..ea325e28c 100644 --- a/src/cpu/minor/execute.cc +++ b/src/cpu/minor/execute.cc @@ -150,7 +150,7 @@ Execute::Execute(const std::string &name_, } /** Check that there is a functional unit for all operation classes */ - for (int op_class = No_OpClass + 1; op_class < Num_OpClass; op_class++) { + for (int op_class = No_OpClass + 1; op_class < Num_OpClasses; op_class++) { bool found_fu = false; unsigned int fu_index = 0; |