CheckerCPU: Re-factor CheckerCPU to be compatible with current gem5