move func WaitForSts to cpu.c