Browse Source

debug: Abstract commands fail on unavailable harts.

pull/1473/head
Tim Newsome 3 years ago
parent
commit
77e9aaef19
  1. 4
      riscv/debug_module.cc

4
riscv/debug_module.cc

@ -579,6 +579,10 @@ bool debug_module_t::perform_abstract_command()
abstractcs.cmderr = CMDERR_BUSY; abstractcs.cmderr = CMDERR_BUSY;
return true; return true;
} }
if (!hart_available(dmcontrol.hartsel)) {
abstractcs.cmderr = CMDERR_HALTRESUME;
return true;
}
if ((command >> 24) == 0) { if ((command >> 24) == 0) {
// register access // register access

Loading…
Cancel
Save