Skip to content

Commit

Permalink
debug: Abstract commands fail on unavailable harts.
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive committed Sep 28, 2023
1 parent 7613da4 commit 77e9aae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions riscv/debug_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,10 @@ bool debug_module_t::perform_abstract_command()
abstractcs.cmderr = CMDERR_BUSY;
return true;
}
if (!hart_available(dmcontrol.hartsel)) {
abstractcs.cmderr = CMDERR_HALTRESUME;
return true;
}

if ((command >> 24) == 0) {
// register access
Expand Down

0 comments on commit 77e9aae

Please sign in to comment.