Next | Prev | Up | Top | Contents | Index

Displaying and Changing Registers

symmon(1) provides commands that allow you to display and alter the processor and coprocessor general-purpose registers. To identify a general-purpose register (there are 32 registers, numbered 0 through 31), you can use names such as "r0" or "r31," or you can use the compiler usage names (in some cases, you may need to prepend a "$"). The compiler names and the associated "r" names are listed in Table 10-1.

Processor and Coprocessor General-purpose Registers
CompilerProcessorUsage
zeror0Wired zero
atr1Assembler temporary
v0r2Function value registers
v1r3 
a0r4Argument registers
a1r5 
a2r6 
a3r7 
t0r8Caller saved registers
t1r9 
t2r10 
t3r11 
t4r12 
t5r13 
t6r14 
t7r15 
s0r16Callee saved
s1r17 
s2r18 
s3r19 
s4r20 
s5r21 
s6r22 
s7r23 
t8r24Caller saved
t9r25 
k0r26Kernel temporary
k1r27 
gpr28Global pointer
spr29Stack pointer
fp/s8r30Callee saved
rar31Return address

You can refer to special R2000/3000/4000/8000 registers and system coprocessor registers by using the names listed in Table 10-2, Table 10-3, and Table 10-4.

R2000-R4000 Processor and Coprocessor Special Registers
NameR2000/3000/4000 Register
mdloMul/div register lower word
mdhiMul/div register higher word
pc epcException PC
srStatus register
causeCause register
tlbhi entryhiTLB entry hi register
tlblo entryloTLB entry lo register
badvaddrBad virtual address
index inxTLB index register
context ctxt Context register
random Random register

R4000-only System Coprocessor Registers
NameR4000Series System Coprocessor Register
tlblo0TLB entrylo0 register
tlblo1TLB entrylo1 register
pagemaskTLB pagemask register
wiredTLB wired register
countTimer count register
compareTimer compare register
watchloWatchLo register
watchhiWatchHi register
eccEcc register
cacherrCache error and status register
errepcCache ErrorEpc register
tagloCache tag register
configConfiguration register

R8000-only Special Registers
NameR8000 Series Special Register
tlbsetTLBset register
(index into a TLB entry's set)
trapbaseTrapbase register
(base address of trap vectors)
ubaseUBase register
pbasePBase register
gbaseGBase register
shiftamtShiftAmt register
wiredWired register
badpaddrBadPAddr register


Next | Prev | Up | Top | Contents | Index