Ensure that halt asserted after ndm reset is not ignored.
Issue halt if haltreq is asserted and the hart is running. This will ensure that the hart is always halted after ndmreset, as is done with OpenOCD. This corresponds to Flute commit 71d7e715f.
This commit is contained in:
@@ -225,7 +225,7 @@ module mkDM_Run_Control (DM_Run_Control_IFC);
|
||||
$display ("DM_Run_Control.write: hart0 resume request");
|
||||
end
|
||||
// Halt hart(s)
|
||||
else if (haltreq && !rg_dmcontrol_haltreq) begin
|
||||
else if (haltreq && rg_hart0_running) begin
|
||||
f_hart0_run_halt_reqs.enq (False);
|
||||
$display ("DM_Run_Control.write: hart0 halt request");
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user