Lines Matching refs:l2_state
333 struct nested_ppc_state l2_state; in h_enter_nested() local
389 len = sizeof(l2_state.gpr); in h_enter_nested()
391 memcpy(l2_state.gpr, regs->gpr, len); in h_enter_nested()
393 l2_state.lr = regs->link; in h_enter_nested()
394 l2_state.ctr = regs->ctr; in h_enter_nested()
395 l2_state.xer = regs->xer; in h_enter_nested()
396 l2_state.cr = regs->ccr; in h_enter_nested()
397 l2_state.msr = regs->msr; in h_enter_nested()
398 l2_state.nip = regs->nip; in h_enter_nested()
402 l2_state.cfar = hv_state.cfar; in h_enter_nested()
403 l2_state.lpidr = hv_state.lpid; in h_enter_nested()
409 l2_state.lpcr = lpcr & pcc->lpcr_mask; in h_enter_nested()
411 l2_state.pcr = hv_state.pcr; in h_enter_nested()
413 l2_state.dpdes = hv_state.dpdes; in h_enter_nested()
414 l2_state.hfscr = hv_state.hfscr; in h_enter_nested()
416 l2_state.srr0 = hv_state.srr0; in h_enter_nested()
417 l2_state.srr1 = hv_state.srr1; in h_enter_nested()
418 l2_state.sprg0 = hv_state.sprg[0]; in h_enter_nested()
419 l2_state.sprg1 = hv_state.sprg[1]; in h_enter_nested()
420 l2_state.sprg2 = hv_state.sprg[2]; in h_enter_nested()
421 l2_state.sprg3 = hv_state.sprg[3]; in h_enter_nested()
422 l2_state.pidr = hv_state.pidr; in h_enter_nested()
423 l2_state.ppr = hv_state.ppr; in h_enter_nested()
424 l2_state.tb_offset = env->tb_env->tb_offset + hv_state.tb_offset; in h_enter_nested()
429 nested_load_state(cpu, &l2_state); in h_enter_nested()
464 struct nested_ppc_state l2_state; in spapr_exit_nested_hv() local
472 nested_save_state(&l2_state, cpu); in spapr_exit_nested_hv()
503 hvstate->cfar = l2_state.cfar; in spapr_exit_nested_hv()
504 hvstate->lpcr = l2_state.lpcr; in spapr_exit_nested_hv()
505 hvstate->pcr = l2_state.pcr; in spapr_exit_nested_hv()
506 hvstate->dpdes = l2_state.dpdes; in spapr_exit_nested_hv()
507 hvstate->hfscr = l2_state.hfscr; in spapr_exit_nested_hv()
518 hvstate->srr0 = l2_state.srr0; in spapr_exit_nested_hv()
519 hvstate->srr1 = l2_state.srr1; in spapr_exit_nested_hv()
520 hvstate->sprg[0] = l2_state.sprg0; in spapr_exit_nested_hv()
521 hvstate->sprg[1] = l2_state.sprg1; in spapr_exit_nested_hv()
522 hvstate->sprg[2] = l2_state.sprg2; in spapr_exit_nested_hv()
523 hvstate->sprg[3] = l2_state.sprg3; in spapr_exit_nested_hv()
524 hvstate->pidr = l2_state.pidr; in spapr_exit_nested_hv()
525 hvstate->ppr = l2_state.ppr; in spapr_exit_nested_hv()
541 memcpy(regs->gpr, l2_state.gpr, len); in spapr_exit_nested_hv()
543 regs->link = l2_state.lr; in spapr_exit_nested_hv()
544 regs->ctr = l2_state.ctr; in spapr_exit_nested_hv()
545 regs->xer = l2_state.xer; in spapr_exit_nested_hv()
546 regs->ccr = l2_state.cr; in spapr_exit_nested_hv()
551 regs->nip = l2_state.srr0; in spapr_exit_nested_hv()
552 regs->msr = l2_state.srr1 & env->msr_mask; in spapr_exit_nested_hv()