@@ -84,7 +84,7 @@ While the reset is on-going, harts are either in the running state,
84
84
indicating it's possible to perform some abstract commands during this
85
85
time, or in the unavailable state, indicating it's not possible to
86
86
perform any abstract commands during this time. Once a hart's reset is
87
- complete, `havereset` becomes set. When a hart comes out of reset and {dmcontrol-haltreq} or `resethaltreq`
87
+ complete, `havereset` becomes set. When a hart comes out of reset and {dmcontrol-haltreq} or `resethaltreq`
88
88
are set, the hart will immediately enter Debug Mode (halted state).
89
89
Otherwise, if the hart was initially running it will execute normally
90
90
(running state) and if the hart was initially halted it should now be
@@ -331,12 +331,13 @@ Debuggers execute abstract commands by writing them to {dm-command}. They can
331
331
determine whether an abstract command is complete by reading {abstractcs-busy} in {dm-abstractcs}. After
332
332
completion, {abstractcs-cmderr} indicates whether the command was successful or not.
333
333
Commands may fail because a hart is not halted, not running,
334
- unavailable, because they encounter an error during execution.
334
+ unavailable, or because they encounter an error during execution.
335
335
336
336
If the debugger attempts to start a new command while {abstractcs-busy} is set,
337
337
the new command will not get started and the currently executing command still
338
- gets to run to completion. After that, {abstractcs-cmderr} becomes 1 (busy),
339
- and any error generated by the completed command is lost.
338
+ gets to run to completion. After the command finishes, {abstractcs-cmderr}
339
+ will contain 1 (busy), and any error generated by the completed command will
340
+ be lost.
340
341
341
342
If the command takes arguments, the debugger must write them to the
342
343
`data` registers before writing to {dm-command}. If a command returns results, the
@@ -396,7 +397,7 @@ determines the kind of command. <<tab:cmdtype>> lists all commands.
396
397
.Meaning of {command-cmdtype}
397
398
[%autowidth,float="center",align="center",cols=">,<",options="header"]
398
399
|===
399
- | {command-cmdtype} | Command
400
+ | {command-cmdtype} | Command
400
401
| 0 | <<ac-accessregister, Access Register Command>>
401
402
| 1 | <<ac-quickaccess, Quick Access>>
402
403
| 2 | <<ac-accessmemory, Access Memory Command>>
@@ -558,7 +559,7 @@ effects, use the following procedure:
558
559
.. Read {dm-dmcontrol} until {dmcontrol-dmactive} is high.
559
560
. Read {dm-dmstatus}, which contains {dmstatus-version}.
560
561
561
- If it was necessary to clear {dmcontrol-ndmreset}, this might have the following
562
+ If it was necessary to clear {dmcontrol-ndmreset}, this might have the following
562
563
side effects:
563
564
564
565
. {dmcontrol-haltreq} is cleared, potentially preventing a halt request made by a previous debugger from taking effect.
0 commit comments