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:
Darius Rad
2019-04-08 18:10:08 -04:00
parent 4d1030df47
commit 72175d87db

View File

@@ -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