arm: Remove unused variable in dbg_arch_supported
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run

Removed unused dbg_didr which had been used prior to f42421307b to
detect qemu unsupported debugger. I'm unsure how this slipped through my
testing.

Fixes: f42421307b
Sponsored by: Netflix
This commit is contained in:
Warner Losh 2025-11-29 02:47:49 -07:00
parent 57c0a337db
commit 02b72b1540

View file

@ -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);
}
}