diff options
author | Tim Newsome <tim@sifive.com> | 2020-12-14 12:40:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 12:40:08 -0800 |
commit | b8620764c09cbb05d8179fd5f520110fee114417 (patch) | |
tree | 8c3845e6c166dc539f37e30e0c6073f7b00635e9 /src/target/target.c | |
parent | f72e5bb0d82e5feb05efbcbb07c326f28d3e3cdf (diff) | |
download | riscv-openocd-b8620764c09cbb05d8179fd5f520110fee114417.zip riscv-openocd-b8620764c09cbb05d8179fd5f520110fee114417.tar.gz riscv-openocd-b8620764c09cbb05d8179fd5f520110fee114417.tar.bz2 |
Add `riscv info` command. (#558)
Add `riscv info` command. Final output is "TCL format" and looks like this:
```
hart.xlen 64
hart.trigger_count 4
dm.abits 6
dm.progbufsize 2
dm.sbversion 0
dm.sbasize 0
dm.sbaccess128 0
dm.sbaccess64 0
dm.sbaccess32 0
dm.sbaccess16 0
dm.sbaccess8 0
```
* Add `riscv info` command.
This command displays some basic information that OpenOCD has detected
about the target. The output is displayed in YAML so it can easily be
parsed. Example of current output:
```
Hart:
XLEN: 32
trigger count: 4
Debug Module:
abits: 6
progbufsize: 2
sbversion: 0
sbasize: 0
sbaccess128: 0
sbaccess64: 0
sbaccess32: 0
sbaccess16: 0
sbaccess8: 0
```
Change-Id: If920c083ff6ec9f482c50f913cd8ceaa62461217
Signed-off-by: Tim Newsome <tim@sifive.com>
* Disable workflow inherited from upstream.
Change-Id: Ifc5ed1b4f5ec2278b8bcf3279c9fd462e469fefa
Signed-off-by: Tim Newsome <tim@sifive.com>
* Switch from YAML to TCL "set array" input format.
Change-Id: I3833210e5bf6d7cffc9934c04ec5201ae7732ad8
Signed-off-by: Tim Newsome <tim@sifive.com>
* Remove indent in `riscv info` output.
That was getting a little too cute, and probably more confusing than
helpful.
Change-Id: Ie51416f53ab4b69294962f0565767d370db82867
Signed-off-by: Tim Newsome <tim@sifive.com>
Diffstat (limited to 'src/target/target.c')
0 files changed, 0 insertions, 0 deletions