Commit e04664f
committed
[#94558] CortexM: Allow setting CPUWAIT in constructor
This is useful for scenarios where you would like the CPU to start in a
halted state, and stay halted even after being reset. Without this
constructor parameter, you'd have to set both CpuWaitSignal and IsHalted
in order to achieve this, which is inconsistent.
The construction of a new CPU should behave like a reset, and if CPUWAIT
is set before the reset (i.e. as a constructor argument) then the CPU
should be halted from the very beginning.1 parent dcf2120 commit e04664f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments