diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-11-17 16:20:08 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-11-24 16:34:15 +1100 |
commit | f5d14f81b51f38c47aa565979c626706888f8434 (patch) | |
tree | 87ddaf36d2572b0b1bd3fd8fea0fbe6e68e3932f /external | |
parent | 1ed90e228d58c7f9ba768cf5719fe2666149602b (diff) | |
download | skiboot-f5d14f81b51f38c47aa565979c626706888f8434.zip skiboot-f5d14f81b51f38c47aa565979c626706888f8434.tar.gz skiboot-f5d14f81b51f38c47aa565979c626706888f8434.tar.bz2 |
external/mambo: add shortcut to print all GPRs
The 'p' function added by mambo utils can be used to print registers
(GPR or SPR) from a thread. Mambo supports printing all the GPRs in one
go so this plumbs it into the 'p' function.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/mambo/mambo_utils.tcl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/external/mambo/mambo_utils.tcl b/external/mambo/mambo_utils.tcl index 6de952a..a97bdc4 100644 --- a/external/mambo/mambo_utils.tcl +++ b/external/mambo/mambo_utils.tcl @@ -4,6 +4,10 @@ # proc p { reg { t 0 } { c 0 } } { switch -regexp $reg { + ^r$ { + set val [mysim cpu $c thread $t display gprs] + puts "$val" + } ^r[0-9]+$ { regexp "r(\[0-9\]*)" $reg dummy num set val [mysim cpu $c thread $t display gpr $num] |