Re: [PATCH 2/2] powerpc/44x: Fix xmon single step on PowerPC 44x
From: David Gibson <hidden>
Date: 2009-09-23 23:22:58
From: David Gibson <hidden>
Date: 2009-09-23 23:22:58
On Thu, Sep 24, 2009 at 07:34:34AM +1000, Benjamin Herrenschmidt wrote:
On Wed, 2009-09-23 at 09:51 -0400, Josh Boyer wrote:
[snip]
quoted
+static int do_step(struct pt_regs *regs) +{ + regs->msr |= MSR_DE; + mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM);I'm not sure about setting IDM... Won't that be a problem if you have an external debugger connected ?
Not in theory. It should be possible to set both IDM and EDM simultaneously. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson