aboutsummaryrefslogtreecommitdiff
path: root/pk/entry.S
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-10-17 19:16:26 -0700
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-10-17 19:16:26 -0700
commit68879a67d0f49323e1e2f8358d19bc1d94bb9f30 (patch)
tree2317caa203f85076e1adcab9b537b2c388916937 /pk/entry.S
parent992187797b90db0ac35ce8024dc36334548e2ce2 (diff)
downloadriscv-pk-68879a67d0f49323e1e2f8358d19bc1d94bb9f30.zip
riscv-pk-68879a67d0f49323e1e2f8358d19bc1d94bb9f30.tar.gz
riscv-pk-68879a67d0f49323e1e2f8358d19bc1d94bb9f30.tar.bz2
Revert "[pk] restore correct value to $x1/$x2 after trap"
This reverts commit c08c11ad7ea573313668b0231a18a5ea4515eea5.
Diffstat (limited to 'pk/entry.S')
-rw-r--r--pk/entry.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/entry.S b/pk/entry.S
index fa64a80..b128e93 100644
--- a/pk/entry.S
+++ b/pk/entry.S
@@ -79,7 +79,7 @@ pop_tf: # write the trap frame onto the stack
LOAD $x1,1*REGBYTES($a0)
mtpcr $x1,ASM_CR(PCR_K0)
LOAD $x1,2*REGBYTES($a0)
- mtpcr $x2,ASM_CR(PCR_K1)
+ mtpcr $x1,ASM_CR(PCR_K1)
move $x1,$a0
LOAD $x3,3*REGBYTES($x1)
LOAD $x4,4*REGBYTES($x1)