Lines Matching refs:spr
126 env->spr[SPR_LR] = env->lr; in cpu_pre_save()
127 env->spr[SPR_CTR] = env->ctr; in cpu_pre_save()
128 env->spr[SPR_XER] = cpu_read_xer(env); in cpu_pre_save()
130 env->spr[SPR_CFAR] = env->cfar; in cpu_pre_save()
132 env->spr[SPR_BOOKE_SPEFSCR] = env->spe_fscr; in cpu_pre_save()
135 env->spr[SPR_DBAT0U + 2 * i] = env->DBAT[0][i]; in cpu_pre_save()
136 env->spr[SPR_DBAT0U + 2 * i + 1] = env->DBAT[1][i]; in cpu_pre_save()
137 env->spr[SPR_IBAT0U + 2 * i] = env->IBAT[0][i]; in cpu_pre_save()
138 env->spr[SPR_IBAT0U + 2 * i + 1] = env->IBAT[1][i]; in cpu_pre_save()
141 env->spr[SPR_DBAT4U + 2 * i] = env->DBAT[0][i + 4]; in cpu_pre_save()
142 env->spr[SPR_DBAT4U + 2 * i + 1] = env->DBAT[1][i + 4]; in cpu_pre_save()
143 env->spr[SPR_IBAT4U + 2 * i] = env->IBAT[0][i + 4]; in cpu_pre_save()
144 env->spr[SPR_IBAT4U + 2 * i + 1] = env->IBAT[1][i + 4]; in cpu_pre_save()
155 env->spr[SPR_DECR] = cpu_ppc_load_decr(env); in cpu_pre_save()
211 if (!pvr_match(cpu, env->spr[SPR_PVR])) { in cpu_post_load()
232 env->spr[SPR_PVR] = env->spr_cb[SPR_PVR].default_value; in cpu_post_load()
235 env->lr = env->spr[SPR_LR]; in cpu_post_load()
236 env->ctr = env->spr[SPR_CTR]; in cpu_post_load()
237 cpu_write_xer(env, env->spr[SPR_XER]); in cpu_post_load()
239 env->cfar = env->spr[SPR_CFAR]; in cpu_post_load()
241 env->spe_fscr = env->spr[SPR_BOOKE_SPEFSCR]; in cpu_post_load()
244 env->DBAT[0][i] = env->spr[SPR_DBAT0U + 2 * i]; in cpu_post_load()
245 env->DBAT[1][i] = env->spr[SPR_DBAT0U + 2 * i + 1]; in cpu_post_load()
246 env->IBAT[0][i] = env->spr[SPR_IBAT0U + 2 * i]; in cpu_post_load()
247 env->IBAT[1][i] = env->spr[SPR_IBAT0U + 2 * i + 1]; in cpu_post_load()
250 env->DBAT[0][i + 4] = env->spr[SPR_DBAT4U + 2 * i]; in cpu_post_load()
251 env->DBAT[1][i + 4] = env->spr[SPR_DBAT4U + 2 * i + 1]; in cpu_post_load()
252 env->IBAT[0][i + 4] = env->spr[SPR_IBAT4U + 2 * i]; in cpu_post_load()
253 env->IBAT[1][i + 4] = env->spr[SPR_IBAT4U + 2 * i + 1]; in cpu_post_load()
257 ppc_store_sdr1(env, env->spr[SPR_SDR1]); in cpu_post_load()
274 cpu_ppc_store_decr(env, env->spr[SPR_DECR]); in cpu_post_load()
690 VMSTATE_UINTTL_ARRAY(env.spr, PowerPCCPU, 1024),