Simulation.py: move code related to checkpointing to functions This patch moves the code related to checkpointing from the run() function to several different functions. The aim is to make the code more manageable. No functionality changes are expected, but since the code is kind of unruly, it is possible that some change might have creeped in.
Simulation.py: move code related to checkpointing to functions
This patch moves the code related to checkpointing from the run() function to
several different functions. The aim is to make the code more manageable. No
functionality changes are expected, but since the code is kind of unruly, it
is possible that some change might have creeped in.

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