Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Switch DDB for powerpc/booke into S...



details:   https://anonhg.NetBSD.org/src/rev/c0c2e2f1be3c
branches:  trunk
changeset: 1017726:c0c2e2f1be3c
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jan 06 08:14:34 2021 +0000

description:
Switch DDB for powerpc/booke into SOFTWARE_SSTEP.

SR_SINGLESTEP aka PSL_SE bit in MSR is only available for oea, and HW
debug facilities for booke are significantly different from oea.

diffstat:

 sys/arch/powerpc/include/db_machdep.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 9781cba35ffe -r c0c2e2f1be3c sys/arch/powerpc/include/db_machdep.h
--- a/sys/arch/powerpc/include/db_machdep.h     Wed Jan 06 08:07:36 2021 +0000
+++ b/sys/arch/powerpc/include/db_machdep.h     Wed Jan 06 08:14:34 2021 +0000
@@ -1,5 +1,5 @@
 /*     $OpenBSD: db_machdep.h,v 1.2 1997/03/21 00:48:48 niklas Exp $   */
-/*     $NetBSD: db_machdep.h,v 1.28 2020/07/06 09:34:17 rin Exp $      */
+/*     $NetBSD: db_machdep.h,v 1.29 2021/01/06 08:14:34 rin Exp $      */
 
 /* 
  * Mach Operating System
@@ -71,8 +71,8 @@
 #define        BKPT_SIZE       (4)             /* size of breakpoint inst */
 #define        BKPT_SET(inst, addr)    (BKPT_INST)
 
-#ifndef PPC_IBM4XX
-#define SR_SINGLESTEP  0x400
+#if !defined(PPC_BOOKE) && !defined(PPC_IBM4XX)
+#define        SR_SINGLESTEP   0x400           /* PSL_SE, available only for oea */
 #define        db_clear_single_step(regs)      ((regs)->msr &= ~SR_SINGLESTEP)
 #define        db_set_single_step(regs)        ((regs)->msr |=  SR_SINGLESTEP)
 #else



Home | Main Index | Thread Index | Old Index