Searched hist:10998 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/sim/
H A Ddrain.ccdiff 10998:cd22d66592bf Tue Aug 04 05:31:00 EDT 2015 Andreas Sandberg <andreas.sandberg@arm.com> sim: Initialize Drainable::_drainState to the system's state

It is sometimes desirable to be able to instantiate Drainable objects
when the simulator isn't in the Running state. Currently, we always
initialize Drainable objects to the Running state. However, this
confuses many of the sanity checks in the base class since objects
aren't expected to be in the Running state if the system is in the
Draining or Drained state.

Instead of always initializing the state variable in Drainable to
DrainState::Running, initialize it to the state the DrainManager is
in.

Note: This means an object can be created in the Draining/Drained
state without first calling drain().

Completed in 6 milliseconds