[Kgdb-bugreport] bug in ppc BOOKE
Status: Beta
Brought to you by:
jwessel
From: Amy F. <amy...@wi...> - 2005-05-13 15:09:57
|
Hi, The following is a patch to be applied to a file created by ppc-lite.patch. It fixes a problem discovered on an ppc/e500/booke system - sending a step instruction resulted in no changes observed on the target while gdb was stuck waiting. Amy Fong ------------------------------------------- diff -uNr linux-2.6.10.old/arch/ppc/kernel/kgdb.c linux-2.6.10/arch/ppc/kernel/kgdb.c --- linux-2.6.10.old/arch/ppc/kernel/kgdb.c 2005-05-12 17:45:01.000000000 -0400 +++ linux-2.6.10/arch/ppc/kernel/kgdb.c 2005-05-12 17:45:32.000000000 -0400 @@ -228,7 +228,7 @@ /* set the trace bit if we're stepping */ if (remcom_in_buffer[0] == 's') { #if defined (CONFIG_40x) || defined(CONFIG_BOOKE) - mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC); + mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); linux_regs->msr |= MSR_DE; #else linux_regs->msr |= MSR_SE; |