Commit f225eb9
committed
Fix invalid CPU halt without HALT command
HyperCPU emulator runs the executable code until HALT command is sent.
If the end of the code is reached, and there is no HALT command,
emulator will continue reading and executing the code and finally abort
with error like "Interrupt was triggered, but failed to execute handler"
with XIP exceeding the size of the executable code (binary size).
This commit implements automatic CPU halt in case XIP exceeds the binary size.
Signed-off-by: Ivan Movchan <ivan.movchan.07@gmail.com>1 parent 8814cb4 commit f225eb9
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments