aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-09 17:50:12 -0700
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-09 17:50:12 -0700
commit53eb346e31582ce814f61f5e8b2c3087aa8c33f2 (patch)
treebbe82680c77aac681562a3e85ed063f6d471f788 /pk/pk.c
parent6e7fe98ea95c6da8c573fdc032b5269f08bbacc1 (diff)
downloadpk-53eb346e31582ce814f61f5e8b2c3087aa8c33f2.zip
pk-53eb346e31582ce814f61f5e8b2c3087aa8c33f2.tar.gz
pk-53eb346e31582ce814f61f5e8b2c3087aa8c33f2.tar.bz2
[sim,pk] reorganized status register
Diffstat (limited to 'pk/pk.c')
-rw-r--r--pk/pk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/pk.c b/pk/pk.c
index 7ee573e..9c6653d 100644
--- a/pk/pk.c
+++ b/pk/pk.c
@@ -127,7 +127,7 @@ void init_tf(trapframe_t* tf, long pc, long sp, int user64)
memset(tf,0,sizeof(*tf));
if(sizeof(void*) != 8)
kassert(!user64);
- tf->sr = (mfpcr(PCR_SR) & (SR_IM | SR_SX)) | SR_S | SR_UC | SR_UC;
+ tf->sr = (mfpcr(PCR_SR) & (SR_IM | SR_SX)) | SR_S | SR_EC;
if(user64)
tf->sr |= SR_UX;
tf->gpr[30] = sp;