Totalview® for HPC Reference Guide : PART IV Platforms and Operating Systems : Chapter 11 Architectures : Power Architectures : Power General Registers
Power General Registers
TotalView displays Power general registers in the Stack Frame Pane of the Process Window. The following table describes how TotalView treats each general register, and the actions you can take with each register.
Register
Description
Data Type
Edit
Dive
Specify in Expression
R0
General register 0
$int/$long
yes
yes
$r0
SP
Stack pointer
$int/$long
yes
yes
$sp
RTOC
TOC pointer
$int/$long
yes
yes
$rtoc
R3 - R31
General registers 3 - 31
$int/$long
yes
yes
$r3 - $r31
INUM
 
$int/$long
yes
no
$inum
PC
Program counter
$code[]
no
yes
$pc
SRR1
Machine status save/restore register
$int/$long
yes
no
$srr1
LR
Link register
$code[]
yes
no
$lr
CTR
Counter register
$int/$long
yes
no
$ctr
CR
Condition register (see below)
$int/$long
yes
no
$cr
XER
Integer exception register (see below)
$int/$long
yes
no
$xer
DAR
Data address register
$int/$long
yes
no
$dar
MQ
MQ register
$int/$long
yes
no
$mq
MSR
Machine state register
$int/$long
yes
no
$msr
SEG0 - SEG9
Segment registers 0 - 9
$int/$long
yes
no
$seg0 - $seg9
SG10 - SG15
Segment registers 10 -15
$int/$long
yes
no
$sg10 - $sg15
SCNT
SS_COUNT
$int/$long
yes
no
$scnt
SAD1
SS_ADDR 1
$int/$long
yes
no
$sad1
SAD2
SS_ADDR 2
$int/$long
yes
no
$sad2
SCD1
SS_CODE 1
$int/$long
yes
no
$scd1
SCD2
SS_CODE 2
$int/$long
yes
no
$scd2
TID
 
$int/$long
yes
no
 
CR Register
TotalView writes information for each of the eight condition sets, appending a a >, <, or = symbol. For example, if the summary overflow (0x1) bit is set, TotalView might display the following:
0x22424444 (574768196) (0=,1=,2>,3=,4>,5>,6>,7>)
XER Register
Depending upon what was set, TotalView can display up to five kinds of information, as follows:
STD:0x%02x
The string terminator character (bits 25-31)
SL:%d
The string length field (bits 16-23)
S0
Displayed if the summary overflow bit is set (bit 0)
OV
Displayed if the overflow bit is set (bit 1)
CA
Displayed if the carry bit is set (bit 2)
For example:
0x20000002 (536870914) (STD:0x00,SL:2,CA)