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.
This commit is contained in:
rin 2021-01-06 08:14:34 +00:00
parent 04d12c4699
commit a07603df51
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ extern db_regs_t ddb_regs; /* register state */
#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