Review Board 2.0.15


cpu: Dynamically instantiate O3 CPU LSQUnits

Review Request #1958 - Created July 19, 2013 and submitted - Latest diff uploaded

Information
Joel Hestness
gem5
default
Reviewers
Default
Changeset 9818:132e2bbe723e
---------------------------
cpu: Dynamically instantiate O3 CPU LSQUnits

Previously, the LSQ would instantiate MaxThreads LSQUnits in the body of it's
object, but it would only initialize numThreads LSQUnits as specified by the
user. This had the effect of leaving some LSQUnits uninitialized when the
number of threads was less than MaxThreads, and when adding statistics to the
LSQUnit that must be initialized, this caused the stats initialization check to
fail. By dynamically instantiating LSQUnits, they are all initialized and this
avoids uninitialized LSQUnits from floating around during runtime.
Ran O3 regressions and tested checkpoint restore with additional LSQUnit stats.