aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
authorMinsoo Choo <minsoochoo0122@proton.me>2025-11-29 00:34:40 +0000
committerWarner Losh <imp@FreeBSD.org>2025-11-29 04:56:36 +0000
commitf42421307b115345ea1a6c8fdf61fbb581e4400f (patch)
treea1bda0d13d8225a865904cb98a83a6acbe9bc885 /sys/arm
parent42d704bfc45a1eee601e7cd33ae4bef01c24b9ed (diff)
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/debug_monitor.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/arm/arm/debug_monitor.c b/sys/arm/arm/debug_monitor.c
index 7944becbae4d..4d61896a2142 100644
--- a/sys/arm/arm/debug_monitor.c
+++ b/sys/arm/arm/debug_monitor.c
@@ -83,8 +83,6 @@ static uint32_t dbg_breakpoint_num;
#define ID_DFR0_CP_DEBUG_M_SHIFT 0
#define ID_DFR0_CP_DEBUG_M_MASK (0xF << ID_DFR0_CP_DEBUG_M_SHIFT)
#define ID_DFR0_CP_DEBUG_M_NS (0x0) /* Not supported */
-#define ID_DFR0_CP_DEBUG_M_V6 (0x2) /* v6 Debug arch. CP14 access */
-#define ID_DFR0_CP_DEBUG_M_V6_1 (0x3) /* v6.1 Debug arch. CP14 access */
#define ID_DFR0_CP_DEBUG_M_V7 (0x4) /* v7 Debug arch. CP14 access */
#define ID_DFR0_CP_DEBUG_M_V7_1 (0x5) /* v7.1 Debug arch. CP14 access */
@@ -594,10 +592,6 @@ dbg_enable_monitor(void)
dbg_dscr = cp14_dbgdscrint_get();
switch (dbg_model) {
- case ID_DFR0_CP_DEBUG_M_V6:
- case ID_DFR0_CP_DEBUG_M_V6_1: /* fall through */
- cp14_dbgdscr_v6_set(dbg_dscr | DBGSCR_MDBG_EN);
- break;
case ID_DFR0_CP_DEBUG_M_V7: /* fall through */
case ID_DFR0_CP_DEBUG_M_V7_1:
cp14_dbgdscr_v7_set(dbg_dscr | DBGSCR_MDBG_EN);
@@ -823,18 +817,6 @@ dbg_arch_supported(void)
uint32_t dbg_didr;
switch (dbg_model) {
- case ID_DFR0_CP_DEBUG_M_V6:
- case ID_DFR0_CP_DEBUG_M_V6_1:
- dbg_didr = cp14_dbgdidr_get();
- /*
- * read-all-zeroes is used by QEMU
- * to indicate that ARMv6 debug support
- * is not implemented. Real hardware has at
- * least version bits set
- */
- if (dbg_didr == 0)
- return (FALSE);
- return (TRUE);
case ID_DFR0_CP_DEBUG_M_V7:
case ID_DFR0_CP_DEBUG_M_V7_1: /* fall through */
return (TRUE);
@@ -875,16 +857,6 @@ dbg_reset_state(void)
err = 0;
switch (dbg_model) {
- case ID_DFR0_CP_DEBUG_M_V6:
- case ID_DFR0_CP_DEBUG_M_V6_1: /* fall through */
- /*
- * Arch needs monitor mode selected and enabled
- * to be able to access breakpoint/watchpoint registers.
- */
- err = dbg_enable_monitor();
- if (err != 0)
- return (err);
- goto vectr_clr;
case ID_DFR0_CP_DEBUG_M_V7:
/* Is core power domain powered up? */
if ((cp14_dbgprsr_get() & DBGPRSR_PU) == 0)
@@ -974,8 +946,6 @@ dbg_monitor_init(void)
if (bootverbose) {
db_printf("ARM Debug Architecture %s\n",
- (dbg_model == ID_DFR0_CP_DEBUG_M_V6) ? "v6" :
- (dbg_model == ID_DFR0_CP_DEBUG_M_V6_1) ? "v6.1" :
(dbg_model == ID_DFR0_CP_DEBUG_M_V7) ? "v7" :
(dbg_model == ID_DFR0_CP_DEBUG_M_V7_1) ? "v7.1" : "unknown");
}