Merge branch 'fix-riscv-cte' into 'master'

riscv64-nemu,cte: fix wrong store instruction in trap.S

See merge request projectn/nexus-am!37
This commit is contained in:
Zihao Yu 2020-03-25 09:19:37 +08:00
commit 5fb66a380f
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ save_context:
MAP(REGS, PUSH)
csrrw t0, sscratch, x0 # t0 = (from user ? usp : 0)
sw t0, OFFSET_SP(sp)
STORE t0, OFFSET_SP(sp)
csrr t0, scause
csrr t1, sstatus