aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.c
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2010-10-26 02:20:44 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2010-10-26 02:20:44 -0700
commit9fe7d4f656dd3c6bfe6be17d2e48eacb59ad00f5 (patch)
tree1a433c0148d3751fa90109da5632420fd9b4e152 /pk/pk.c
parent6ba19295c02fc04ddba539ef13fb411d3587a799 (diff)
downloadriscv-pk-9fe7d4f656dd3c6bfe6be17d2e48eacb59ad00f5.zip
riscv-pk-9fe7d4f656dd3c6bfe6be17d2e48eacb59ad00f5.tar.gz
riscv-pk-9fe7d4f656dd3c6bfe6be17d2e48eacb59ad00f5.tar.bz2
[pk,sim,xcc] get rid of at register, introduce tp register
Diffstat (limited to 'pk/pk.c')
-rw-r--r--pk/pk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pk/pk.c b/pk/pk.c
index c3be3a2..636fa40 100644
--- a/pk/pk.c
+++ b/pk/pk.c
@@ -105,10 +105,10 @@ void sprintk(char* out, const char* s, ...)
void dump_tf(trapframe_t* tf)
{
static const char* regnames[] = {
- "z ", "at", "v0", "v1", "a0", "a1", "a2", "a3",
- "a4", "a5", "a6", "a7", "t4", "t5", "t6", "t7",
- "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
- "t8", "t9", "k0", "k1", "gp", "sp", "s8", "ra"
+ "z ", "tp", "v0", "v1", "a0", "a1", "a2", "a3",
+ "a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3",
+ "t4", "t5", "t6", "t7", "s0", "s1", "s2", "s3",
+ "s4", "s5", "s6", "s7", "s8", "fp", "sp", "ra"
};
tf->gpr[0] = 0;
@@ -126,7 +126,7 @@ void init_tf(trapframe_t* tf, long pc, long sp)
{
memset(tf,0,sizeof(*tf));
tf->sr = mfpcr(PCR_SR) & ~(SR_PS | SR_ET);
- tf->gpr[29] = USER_MEM_SIZE-USER_MAINVARS_SIZE;
+ tf->gpr[30] = USER_MEM_SIZE-USER_MAINVARS_SIZE;
tf->epc = USER_START;
}