aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2025-11-29 09:47:49 +0000
committerWarner Losh <imp@FreeBSD.org>2025-11-29 09:47:49 +0000
commit02b72b1540bf4e8daaeda4b4ef1670b766768db7 (patch)
tree2c636aeb5576d9680fd8bb18b77ce24c5fdff871
parent57c0a337dbc592a82d184f18dc69634eb0a9db10 (diff)
arm: Remove unused variable in dbg_arch_supported
Removed unused dbg_didr which had been used prior to f42421307b11 to detect qemu unsupported debugger. I'm unsure how this slipped through my testing. Fixes: f42421307b11 Sponsored by: Netflix
-rw-r--r--sys/arm/arm/debug_monitor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arm/arm/debug_monitor.c b/sys/arm/arm/debug_monitor.c
index 4d61896a2142..a703c65f541b 100644
--- a/sys/arm/arm/debug_monitor.c
+++ b/sys/arm/arm/debug_monitor.c
@@ -814,14 +814,12 @@ dbg_get_ossr(void)
static __inline boolean_t
dbg_arch_supported(void)
{
- uint32_t dbg_didr;
-
switch (dbg_model) {
case ID_DFR0_CP_DEBUG_M_V7:
case ID_DFR0_CP_DEBUG_M_V7_1: /* fall through */
return (TRUE);
default:
- /* We only support valid v6.x/v7.x modes through CP14 */
+ /* We only support valid v7.x modes through CP14 */
return (FALSE);
}
}