fix the MAX_CHECKPOINTS stuff
fix the MAX_CHECKPOINTS stuff

sim/serialize.cc:
    Make the max checkpoint thing actually stop after the last
    checkpoint

--HG--
extra : convert_revision : 091179c4706e9876a9b7e826513c5c14ce6b72af

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