cpu: Work around gcc 4.9 issues with Num_OpClasses
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 5 May 2015 07:22:19 +0000 (03:22 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 5 May 2015 07:22:19 +0000 (03:22 -0400)
commitd0d933facc9085727c12f53de76a2cb879ded4c8
tree6f4bbec33f85ff63e9804cafa00a735cad31c551
parenteb1a9977bfcf53652cc7ddbb948ed63262b794be
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.
src/cpu/minor/execute.cc
src/cpu/o3/fu_pool.cc
src/cpu/o3/fu_pool.hh
src/cpu/op_class.hh