Cleanup CPU code.