Don't emit vector instructions for now
authorAndrew Waterman <waterman@cs.berkeley.edu>
Sun, 15 Sep 2013 11:24:39 +0000 (04:24 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Sun, 15 Sep 2013 11:24:39 +0000 (04:24 -0700)
env/v/entry.S
env/v/vm.c

index c3ac344cae15902ee4fc5bcced6ec9fb66ba356d..7f54f3d209e4e1e01bb9d1672581d9a69b2f85ca 100644 (file)
@@ -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
index dd29a40b64aa73a53eb90f1139b2250241a036f3..bfbf197a850c55e0d175845fefeacf3deece64f8 100644 (file)
@@ -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);
 }