Commit 7e50833
committed
target/riscv: add target_was_examined() checks
If a RISC-V target does not pass initial examination
some commands fail by assert() or log lot of hardly
understandable errors.
Check if target was examined otherwise fail early.
Although command_print() is preferred in OpenOCD commands,
use LOG_TARGET_ERROR() if the rest of command uses the same.
Change-Id: I615e48f348a0f3bdaf71630a2fcd6fc7665115d5
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9275
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>1 parent b07521d commit 7e50833
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5007 | 5007 | | |
5008 | 5008 | | |
5009 | 5009 | | |
| 5010 | + | |
| 5011 | + | |
| 5012 | + | |
| 5013 | + | |
| 5014 | + | |
5010 | 5015 | | |
5011 | 5016 | | |
5012 | 5017 | | |
| |||
5072 | 5077 | | |
5073 | 5078 | | |
5074 | 5079 | | |
| 5080 | + | |
| 5081 | + | |
| 5082 | + | |
| 5083 | + | |
| 5084 | + | |
5075 | 5085 | | |
5076 | 5086 | | |
5077 | 5087 | | |
| |||
5137 | 5147 | | |
5138 | 5148 | | |
5139 | 5149 | | |
| 5150 | + | |
| 5151 | + | |
| 5152 | + | |
| 5153 | + | |
| 5154 | + | |
5140 | 5155 | | |
5141 | 5156 | | |
5142 | 5157 | | |
| |||
5194 | 5209 | | |
5195 | 5210 | | |
5196 | 5211 | | |
| 5212 | + | |
| 5213 | + | |
| 5214 | + | |
| 5215 | + | |
| 5216 | + | |
5197 | 5217 | | |
5198 | 5218 | | |
5199 | 5219 | | |
| |||
5408 | 5428 | | |
5409 | 5429 | | |
5410 | 5430 | | |
| 5431 | + | |
| 5432 | + | |
| 5433 | + | |
| 5434 | + | |
| 5435 | + | |
5411 | 5436 | | |
5412 | 5437 | | |
5413 | 5438 | | |
| |||
5514 | 5539 | | |
5515 | 5540 | | |
5516 | 5541 | | |
| 5542 | + | |
| 5543 | + | |
| 5544 | + | |
| 5545 | + | |
| 5546 | + | |
5517 | 5547 | | |
5518 | 5548 | | |
5519 | 5549 | | |
| |||
0 commit comments