Skip to content

Commit

Permalink
external/mambo: add shortcut to print all GPRs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
oohal authored and stewartsmith committed Nov 24, 2016
1 parent 1ed90e2 commit f5d14f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions external/mambo/mambo_utils.tcl
Expand Up @@ -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]
Expand Down

0 comments on commit f5d14f8

Please sign in to comment.