diff options
author | Joel Hestness <jthestness@gmail.com> | 2013-09-11 15:33:27 -0500 |
---|---|---|
committer | Joel Hestness <jthestness@gmail.com> | 2013-09-11 15:33:27 -0500 |
commit | c1cf55c7388d01222825911fabca617177966ce9 (patch) | |
tree | f71b0f44ae3452515d7434d0c45f3d2f1a74ed49 /src/mem/protocol/RubySlicc_interfaces.slicc | |
parent | e391fd151b589648901b86be71971713e8ee4c59 (diff) | |
download | gem5-c1cf55c7388d01222825911fabca617177966ce9.tar.xz |
ruby: Statically allocate stats in SimpleNetwork, Switch, Throttle
The previous changeset (9863:9483739f83ee) used STL vector containers to
dynamically allocate stats in the Ruby SimpleNetwork, Switch and Throttle. For
gcc versions before at least 4.6.3, this causes the standard vector allocator
to call Stats copy constructors (a no-no, since stats should be allocated in
the body of each SimObject instance). Since the size of these stats arrays is
known at compile time (NOTE: after code generation), this patch changes their
allocation to be static rather than using an STL vector.
Diffstat (limited to 'src/mem/protocol/RubySlicc_interfaces.slicc')
0 files changed, 0 insertions, 0 deletions