Skip to content

Commit f5d14f8

Browse files
oohalstewartsmith
authored andcommitted
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>
1 parent 1ed90e2 commit f5d14f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

external/mambo/mambo_utils.tcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#
55
proc p { reg { t 0 } { c 0 } } {
66
switch -regexp $reg {
7+
^r$ {
8+
set val [mysim cpu $c thread $t display gprs]
9+
puts "$val"
10+
}
711
^r[0-9]+$ {
812
regexp "r(\[0-9\]*)" $reg dummy num
913
set val [mysim cpu $c thread $t display gpr $num]

0 commit comments

Comments
 (0)