aboutsummaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2013-09-15 04:24:39 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2013-09-15 04:24:39 -0700
commit324c290f32f9c6e8953f14529d1e86659b2a2239 (patch)
treed2c148275fd7ee21e66ec635ef72a22bc98e4d75 /env
parent728924ea6db6f6c3ee11554c3ad79d9bdabbe57e (diff)
downloadriscv-tests-324c290f32f9c6e8953f14529d1e86659b2a2239.zip
riscv-tests-324c290f32f9c6e8953f14529d1e86659b2a2239.tar.gz
riscv-tests-324c290f32f9c6e8953f14529d1e86659b2a2239.tar.bz2
Don't emit vector instructions for now
Diffstat (limited to 'env')
-rw-r--r--env/v/entry.S2
-rw-r--r--env/v/vm.c2
2 files changed, 4 insertions, 0 deletions
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
diff --git a/env/v/vm.c b/env/v/vm.c
index dd29a40..bfbf197 100644
--- a/env/v/vm.c
+++ b/env/v/vm.c
@@ -207,8 +207,10 @@ void handle_trap(trapframe_t* tf)
assert(0);
out:
+#if 0
if (!(tf->sr & SR_PS) && (tf->sr & SR_EV))
restore_vector(tf);
+#endif
pop_tf(tf);
}