From 14d2735b41baa3a47b90fd8f050ebba50d50117b Mon Sep 17 00:00:00 2001 From: Stefano Capello Date: Mon, 15 Apr 2024 12:02:37 +0100 Subject: [PATCH] fixed missing hartsel reference when determining HARTSELLEN --- debug_module.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_module.adoc b/debug_module.adoc index a43d6965..a7f4366a 100644 --- a/debug_module.adoc +++ b/debug_module.adoc @@ -115,7 +115,7 @@ Up to latexmath:[$2^{20}$] harts can be connected to a single DM. Commands issued to the DM only apply to the currently selected harts. To enumerate all the harts, a debugger must first determine `HARTSELLEN` -by writing all ones to (assuming the maximum size) and reading back the +by writing all ones to {hartsel} (assuming the maximum size) and reading back the value to see which bits were actually set. Then it selects each hart starting from 0 until either {dmstatus-anynonexistent} in {dm-dmstatus} is 1, or the highest index (depending on `HARTSELLEN`) is reached.