sim: Initialize Drainable::_drainState to the system's state
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().

aclifton/cpeg853-gem5,KuroeKurose/gem5,cancro7/gem5,powerjg/gem5-ci-test,sobercoder/gem5,briancoutinho0905/2dsampling,briancoutinho0905/2dsampling,TUD-OS/gem5-dtu,gem5/gem5,sobercoder/gem5,briancoutinho0905/2dsampling,cancro7/gem5,gem5/gem5,briancoutinho0905/2dsampling,cancro7/gem5,sobercoder/gem5,powerjg/gem5-ci-test,qizenguf/MLC-STT,aclifton/cpeg853-gem5,Weil0ng/gem5,qizenguf/MLC-STT,rjschof/gem5,SanchayanMaity/gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,TUD-OS/gem5-dtu,gedare/gem5,cancro7/gem5,qizenguf/MLC-STT,SanchayanMaity/gem5,gem5/gem5,Weil0ng/gem5,gedare/gem5,Weil0ng/gem5,powerjg/gem5-ci-test,gem5/gem5,aclifton/cpeg853-gem5,rjschof/gem5,gedare/gem5,rallylee/gem5,rallylee/gem5,HwisooSo/gemV-update,rjschof/gem5,rjschof/gem5,qizenguf/MLC-STT,rallylee/gem5,aclifton/cpeg853-gem5,sobercoder/gem5,rallylee/gem5,HwisooSo/gemV-update,aclifton/cpeg853-gem5,sobercoder/gem5,rjschof/gem5,powerjg/gem5-ci-test,SanchayanMaity/gem5,cancro7/gem5,TUD-OS/gem5-dtu,KuroeKurose/gem5,KuroeKurose/gem5,gedare/gem5,sobercoder/gem5,SanchayanMaity/gem5,briancoutinho0905/2dsampling,gedare/gem5,KuroeKurose/gem5,rallylee/gem5,rjschof/gem5,gem5/gem5,HwisooSo/gemV-update,KuroeKurose/gem5,qizenguf/MLC-STT,KuroeKurose/gem5,rallylee/gem5,Weil0ng/gem5,cancro7/gem5,HwisooSo/gemV-update,aclifton/cpeg853-gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,gem5/gem5,powerjg/gem5-ci-test,SanchayanMaity/gem5,Weil0ng/gem5,Weil0ng/gem5,rjschof/gem5,HwisooSo/gemV-update,SanchayanMaity/gem5,Weil0ng/gem5,SanchayanMaity/gem5,TUD-OS/gem5-dtu,gedare/gem5,sobercoder/gem5,gem5/gem5,gedare/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,qizenguf/MLC-STT,HwisooSo/gemV-update,cancro7/gem5,rallylee/gem5,powerjg/gem5-ci-test,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,briancoutinho0905/2dsampling,TUD-OS/gem5-dtu