X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=env%2Fv%2Fentry.S;h=7f54f3d209e4e1e01bb9d1672581d9a69b2f85ca;hp=c3ac344cae15902ee4fc5bcced6ec9fb66ba356d;hb=324c290f32f9c6e8953f14529d1e86659b2a2239;hpb=728924ea6db6f6c3ee11554c3ad79d9bdabbe57e diff --git a/env/v/entry.S b/env/v/entry.S index c3ac344..7f54f3d 100644 --- a/env/v/entry.S +++ b/env/v/entry.S @@ -148,11 +148,13 @@ trap_entry: move sp,x2 setpcr status, SR_EI move a0,x2 +#if 0 mfpcr ra,status and ra,ra,SR_EV beqz ra, 2f addi x2,x2,39*REGBYTES vxcptsave x2 +#endif 2:jal handle_trap # when coming from kernel, continue below its stack