switching: Remove the drain and resume code from the switching code. This allows us to change memory modes as well. Clean up the code while we're at it.
switching: Remove the drain and resume code from the switching code.
This allows us to change memory modes as well.
Clean up the code while we're at it.

--HG--
extra : convert_revision : fc5fee9ffd08b791f0607ee2688f32aa65d15354

sobercoder/gem5,rallylee/gem5,gem5/gem5,aclifton/cpeg853-gem5,KuroeKurose/gem5,markoshorro/gem5,SanchayanMaity/gem5,austinharris/gem5-riscv,gedare/gem5,zlfben/gem5,cancro7/gem5,aclifton/cpeg853-gem5,Weil0ng/gem5,joerocklin/gem5,zlfben/gem5,yb-kim/gemV,samueldotj/TeeRISC-Simulator,SanchayanMaity/gem5,TUD-OS/gem5-dtu,kaiyuanl/gem5,briancoutinho0905/2dsampling,markoshorro/gem5,joerocklin/gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,gedare/gem5,qizenguf/MLC-STT,Weil0ng/gem5,HwisooSo/gemV-update,cancro7/gem5,SanchayanMaity/gem5,samueldotj/TeeRISC-Simulator,joerocklin/gem5,cancro7/gem5,rallylee/gem5,qizenguf/MLC-STT,TUD-OS/gem5-dtu,zlfben/gem5,kaiyuanl/gem5,SanchayanMaity/gem5,HwisooSo/gemV-update,markoshorro/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,aclifton/cpeg853-gem5,austinharris/gem5-riscv,joerocklin/gem5,TUD-OS/gem5-dtu,SanchayanMaity/gem5,KuroeKurose/gem5,powerjg/gem5-ci-test,Weil0ng/gem5,joerocklin/gem5,zlfben/gem5,rjschof/gem5,cancro7/gem5,samueldotj/TeeRISC-Simulator,aclifton/cpeg853-gem5,markoshorro/gem5,KuroeKurose/gem5,kaiyuanl/gem5,zlfben/gem5,kaiyuanl/gem5,aclifton/cpeg853-gem5,kaiyuanl/gem5,SanchayanMaity/gem5,TUD-OS/gem5-dtu,samueldotj/TeeRISC-Simulator,SanchayanMaity/gem5,aclifton/cpeg853-gem5,powerjg/gem5-ci-test,gedare/gem5,austinharris/gem5-riscv,rjschof/gem5,KuroeKurose/gem5,cancro7/gem5,yb-kim/gemV,qizenguf/MLC-STT,briancoutinho0905/2dsampling,gem5/gem5,gem5/gem5,yb-kim/gemV,yb-kim/gemV,austinharris/gem5-riscv,powerjg/gem5-ci-test,gedare/gem5,rjschof/gem5,rallylee/gem5,samueldotj/TeeRISC-Simulator,HwisooSo/gemV-update,samueldotj/TeeRISC-Simulator,TUD-OS/gem5-dtu,yb-kim/gemV,briancoutinho0905/2dsampling,rjschof/gem5,austinharris/gem5-riscv,aclifton/cpeg853-gem5,sobercoder/gem5,rallylee/gem5,qizenguf/MLC-STT,rallylee/gem5,rjschof/gem5,yb-kim/gemV,sobercoder/gem5,markoshorro/gem5,samueldotj/TeeRISC-Simulator,Weil0ng/gem5,zlfben/gem5,joerocklin/gem5,briancoutinho0905/2dsampling,rallylee/gem5,rjschof/gem5,markoshorro/gem5,Weil0ng/gem5,gedare/gem5,qizenguf/MLC-STT,kaiyuanl/gem5,gem5/gem5,sobercoder/gem5,cancro7/gem5,joerocklin/gem5,briancoutinho0905/2dsampling,joerocklin/gem5,sobercoder/gem5,kaiyuanl/gem5,gem5/gem5,sobercoder/gem5,qizenguf/MLC-STT,gem5/gem5,KuroeKurose/gem5,austinharris/gem5-riscv,powerjg/gem5-ci-test,gem5/gem5,zlfben/gem5,HwisooSo/gemV-update,TUD-OS/gem5-dtu,powerjg/gem5-ci-test,austinharris/gem5-riscv,KuroeKurose/gem5,sobercoder/gem5,cancro7/gem5,HwisooSo/gemV-update,KuroeKurose/gem5,Weil0ng/gem5,gedare/gem5,gedare/gem5,rjschof/gem5,powerjg/gem5-ci-test,HwisooSo/gemV-update,yb-kim/gemV,rallylee/gem5,Weil0ng/gem5,TUD-OS/gem5-dtu,yb-kim/gemV,markoshorro/gem5,briancoutinho0905/2dsampling