Lines Matching defs:debug
230 /* Synchronize guest's desire to get debug interrupts into shadow MSR */
236 /* Force enable debug interrupts when user space wants to debug */
763 struct debug_reg debug;
799 /* Switch to guest debug context */
800 debug = vcpu->arch.dbg_reg;
801 switch_booke_debug_regs(&debug);
802 debug = current->thread.debug;
803 current->thread.debug = vcpu->arch.dbg_reg;
813 /* Switch back to user space debug context */
814 switch_booke_debug_regs(&debug);
815 current->thread.debug = debug;
873 * Imprecise debug event is not injected
885 /* Inject a program interrupt if trap debug is not allowed */
897 run->debug.arch.status = 0;
898 run->debug.arch.address = vcpu->arch.regs.nip;
901 run->debug.arch.status |= KVMPPC_DEBUG_BREAKPOINT;
904 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_WRITE;
906 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_READ;
908 run->debug.arch.address = dbg_reg->dac1;
910 run->debug.arch.address = dbg_reg->dac2;
1435 * Clear DBSR.MRR to avoid guest debug interrupt as
2060 * DBCR1 and DBCR2 are set to trigger debug events when MSR.PR is 0
2067 * We set DBCR1 and DBCR2 to only trigger debug events when MSR.PR
2120 /* Clear pending debug event in DBSR */