move CPU state init to CPU class constructor