MIPS General Registers
TotalView displays the MIPS general purpose 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.
Programs compiled with either -64 or -n32 have 64-bit registers. TotalView uses <long> for -64 compiled programs and <long long> for -n32 compiled programs.
Register |
Description |
Data Type |
Edit |
Dive |
Specify in Expression |
ZERO |
Always has the value 0 |
<long> |
no |
no |
$zero |
AT |
Reserved for the assembler |
<long> |
yes |
yes |
$at |
V0 - V1 |
Function value registers |
<long> |
yes |
yes |
$v0 - $v1 |
A0 - A7 |
Argument registers |
<long> |
yes |
yes |
$a0 - $a7 |
T0 - T3 |
Temporary registers |
<long> |
yes |
yes |
$t0 - $t3 |
S0 - S7 |
Saved registers |
<long> |
yes |
yes |
$s0 - $s7 |
T8 - T9 |
Temporary registers |
<long> |
yes |
yes |
$t8 - $t9 |
K0 - K1 |
Reserved for the operating system |
<long> |
yes |
yes |
$k1 - $k2 |
GP |
Global pointer |
<long> |
yes |
yes |
$gp |
SP |
Stack pointer |
<long> |
yes |
yes |
$sp |
S8 |
Hardware frame pointer |
<long> |
yes |
yes |
$s8 |
RA |
Return address register |
<code>[] |
no |
yes |
$ra |
MDLO |
Multiply/Divide special register, holds least-significant bits of multiply, quotient of divide |
<long> |
yes |
yes |
$mdlo |
MDHI |
Multiply/Divide special register, holds most-significant bits of multiply, remainder of divide |
<long> |
yes |
yes |
$mdhi |
CAUSE |
Cause register |
<long> |
yes |
yes |
$cause |
EPC |
Program counter |
<code>[] |
no |
yes |
$epc |
SR |
Status register |
<long> |
no |
no |
$sr |
VFP |
Virtual frame pointer The virtual frame pointer is a software register that TotalView maintains. It is not an actual hardware register. TotalView computes the VFP as part of stack backtrace. |
<long>
|
no |
no |
$vfp |