Lines Matching refs:arch

37 	vcpu->arch.regs.nip = vcpu->arch.shared->srr0;  in kvmppc_emul_rfi()
38 kvmppc_set_msr(vcpu, vcpu->arch.shared->srr1); in kvmppc_emul_rfi()
43 vcpu->arch.regs.nip = vcpu->arch.dsrr0; in kvmppc_emul_rfdi()
44 kvmppc_set_msr(vcpu, vcpu->arch.dsrr1); in kvmppc_emul_rfdi()
49 vcpu->arch.regs.nip = vcpu->arch.csrr0; in kvmppc_emul_rfci()
50 kvmppc_set_msr(vcpu, vcpu->arch.csrr1); in kvmppc_emul_rfci()
91 kvmppc_set_gpr(vcpu, rt, vcpu->arch.shared->msr); in kvmppc_booke_emulate_op()
101 vcpu->arch.shared->msr = (vcpu->arch.shared->msr & ~MSR_EE) in kvmppc_booke_emulate_op()
107 vcpu->arch.shared->msr = (vcpu->arch.shared->msr & ~MSR_EE) in kvmppc_booke_emulate_op()
138 vcpu->arch.shared->dar = spr_val; in kvmppc_booke_emulate_mtspr()
141 vcpu->arch.shared->esr = spr_val; in kvmppc_booke_emulate_mtspr()
144 vcpu->arch.csrr0 = spr_val; in kvmppc_booke_emulate_mtspr()
147 vcpu->arch.csrr1 = spr_val; in kvmppc_booke_emulate_mtspr()
150 vcpu->arch.dsrr0 = spr_val; in kvmppc_booke_emulate_mtspr()
153 vcpu->arch.dsrr1 = spr_val; in kvmppc_booke_emulate_mtspr()
164 vcpu->arch.dbg_reg.iac1 = spr_val; in kvmppc_booke_emulate_mtspr()
175 vcpu->arch.dbg_reg.iac2 = spr_val; in kvmppc_booke_emulate_mtspr()
187 vcpu->arch.dbg_reg.iac3 = spr_val; in kvmppc_booke_emulate_mtspr()
198 vcpu->arch.dbg_reg.iac4 = spr_val; in kvmppc_booke_emulate_mtspr()
210 vcpu->arch.dbg_reg.dac1 = spr_val; in kvmppc_booke_emulate_mtspr()
221 vcpu->arch.dbg_reg.dac2 = spr_val; in kvmppc_booke_emulate_mtspr()
236 vcpu->arch.dbg_reg.dbcr0 = spr_val; in kvmppc_booke_emulate_mtspr()
247 vcpu->arch.dbg_reg.dbcr1 = spr_val; in kvmppc_booke_emulate_mtspr()
258 vcpu->arch.dbg_reg.dbcr2 = spr_val; in kvmppc_booke_emulate_mtspr()
268 vcpu->arch.dbsr &= ~spr_val; in kvmppc_booke_emulate_mtspr()
269 if (!(vcpu->arch.dbsr & ~DBSR_IDE)) in kvmppc_booke_emulate_mtspr()
280 if (vcpu->arch.tcr & TCR_WRC_MASK) { in kvmppc_booke_emulate_mtspr()
282 spr_val |= vcpu->arch.tcr & TCR_WRC_MASK; in kvmppc_booke_emulate_mtspr()
288 vcpu->arch.decar = spr_val; in kvmppc_booke_emulate_mtspr()
309 vcpu->arch.ivpr = spr_val; in kvmppc_booke_emulate_mtspr()
315 vcpu->arch.ivor[BOOKE_IRQPRIO_CRITICAL] = spr_val; in kvmppc_booke_emulate_mtspr()
318 vcpu->arch.ivor[BOOKE_IRQPRIO_MACHINE_CHECK] = spr_val; in kvmppc_booke_emulate_mtspr()
321 vcpu->arch.ivor[BOOKE_IRQPRIO_DATA_STORAGE] = spr_val; in kvmppc_booke_emulate_mtspr()
327 vcpu->arch.ivor[BOOKE_IRQPRIO_INST_STORAGE] = spr_val; in kvmppc_booke_emulate_mtspr()
330 vcpu->arch.ivor[BOOKE_IRQPRIO_EXTERNAL] = spr_val; in kvmppc_booke_emulate_mtspr()
333 vcpu->arch.ivor[BOOKE_IRQPRIO_ALIGNMENT] = spr_val; in kvmppc_booke_emulate_mtspr()
336 vcpu->arch.ivor[BOOKE_IRQPRIO_PROGRAM] = spr_val; in kvmppc_booke_emulate_mtspr()
339 vcpu->arch.ivor[BOOKE_IRQPRIO_FP_UNAVAIL] = spr_val; in kvmppc_booke_emulate_mtspr()
342 vcpu->arch.ivor[BOOKE_IRQPRIO_SYSCALL] = spr_val; in kvmppc_booke_emulate_mtspr()
348 vcpu->arch.ivor[BOOKE_IRQPRIO_AP_UNAVAIL] = spr_val; in kvmppc_booke_emulate_mtspr()
351 vcpu->arch.ivor[BOOKE_IRQPRIO_DECREMENTER] = spr_val; in kvmppc_booke_emulate_mtspr()
354 vcpu->arch.ivor[BOOKE_IRQPRIO_FIT] = spr_val; in kvmppc_booke_emulate_mtspr()
357 vcpu->arch.ivor[BOOKE_IRQPRIO_WATCHDOG] = spr_val; in kvmppc_booke_emulate_mtspr()
360 vcpu->arch.ivor[BOOKE_IRQPRIO_DTLB_MISS] = spr_val; in kvmppc_booke_emulate_mtspr()
363 vcpu->arch.ivor[BOOKE_IRQPRIO_ITLB_MISS] = spr_val; in kvmppc_booke_emulate_mtspr()
366 vcpu->arch.ivor[BOOKE_IRQPRIO_DEBUG] = spr_val; in kvmppc_booke_emulate_mtspr()
369 vcpu->arch.mcsr &= ~spr_val; in kvmppc_booke_emulate_mtspr()
375 mtspr(SPRN_EPCR, vcpu->arch.shadow_epcr); in kvmppc_booke_emulate_mtspr()
384 current->thread.debug = vcpu->arch.dbg_reg; in kvmppc_booke_emulate_mtspr()
385 switch_booke_debug_regs(&vcpu->arch.dbg_reg); in kvmppc_booke_emulate_mtspr()
396 *spr_val = vcpu->arch.ivpr; in kvmppc_booke_emulate_mfspr()
399 *spr_val = vcpu->arch.shared->dar; in kvmppc_booke_emulate_mfspr()
402 *spr_val = vcpu->arch.shared->esr; in kvmppc_booke_emulate_mfspr()
405 *spr_val = vcpu->arch.epr; in kvmppc_booke_emulate_mfspr()
408 *spr_val = vcpu->arch.csrr0; in kvmppc_booke_emulate_mfspr()
411 *spr_val = vcpu->arch.csrr1; in kvmppc_booke_emulate_mfspr()
414 *spr_val = vcpu->arch.dsrr0; in kvmppc_booke_emulate_mfspr()
417 *spr_val = vcpu->arch.dsrr1; in kvmppc_booke_emulate_mfspr()
420 *spr_val = vcpu->arch.dbg_reg.iac1; in kvmppc_booke_emulate_mfspr()
423 *spr_val = vcpu->arch.dbg_reg.iac2; in kvmppc_booke_emulate_mfspr()
427 *spr_val = vcpu->arch.dbg_reg.iac3; in kvmppc_booke_emulate_mfspr()
430 *spr_val = vcpu->arch.dbg_reg.iac4; in kvmppc_booke_emulate_mfspr()
434 *spr_val = vcpu->arch.dbg_reg.dac1; in kvmppc_booke_emulate_mfspr()
437 *spr_val = vcpu->arch.dbg_reg.dac2; in kvmppc_booke_emulate_mfspr()
440 *spr_val = vcpu->arch.dbg_reg.dbcr0; in kvmppc_booke_emulate_mfspr()
445 *spr_val = vcpu->arch.dbg_reg.dbcr1; in kvmppc_booke_emulate_mfspr()
448 *spr_val = vcpu->arch.dbg_reg.dbcr2; in kvmppc_booke_emulate_mfspr()
451 *spr_val = vcpu->arch.dbsr; in kvmppc_booke_emulate_mfspr()
454 *spr_val = vcpu->arch.tsr; in kvmppc_booke_emulate_mfspr()
457 *spr_val = vcpu->arch.tcr; in kvmppc_booke_emulate_mfspr()
461 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_CRITICAL]; in kvmppc_booke_emulate_mfspr()
464 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_MACHINE_CHECK]; in kvmppc_booke_emulate_mfspr()
467 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_DATA_STORAGE]; in kvmppc_booke_emulate_mfspr()
470 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_INST_STORAGE]; in kvmppc_booke_emulate_mfspr()
473 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_EXTERNAL]; in kvmppc_booke_emulate_mfspr()
476 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_ALIGNMENT]; in kvmppc_booke_emulate_mfspr()
479 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_PROGRAM]; in kvmppc_booke_emulate_mfspr()
482 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_FP_UNAVAIL]; in kvmppc_booke_emulate_mfspr()
485 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_SYSCALL]; in kvmppc_booke_emulate_mfspr()
488 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_AP_UNAVAIL]; in kvmppc_booke_emulate_mfspr()
491 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_DECREMENTER]; in kvmppc_booke_emulate_mfspr()
494 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_FIT]; in kvmppc_booke_emulate_mfspr()
497 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_WATCHDOG]; in kvmppc_booke_emulate_mfspr()
500 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_DTLB_MISS]; in kvmppc_booke_emulate_mfspr()
503 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_ITLB_MISS]; in kvmppc_booke_emulate_mfspr()
506 *spr_val = vcpu->arch.ivor[BOOKE_IRQPRIO_DEBUG]; in kvmppc_booke_emulate_mfspr()
509 *spr_val = vcpu->arch.mcsr; in kvmppc_booke_emulate_mfspr()
513 *spr_val = vcpu->arch.epcr; in kvmppc_booke_emulate_mfspr()