dev: (un)serialize fix for the RTC and RTC Timer Interrupt events
dev: (un)serialize fix for the RTC and RTC Timer Interrupt events

Restoring from a checkpoint fails if either the RTC or the RTC Timer
Interrrupt event is disabled. The restored machine tried incorrectly
to schedule the next event with negative offset.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>

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