aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64sv
diff options
context:
space:
mode:
Diffstat (limited to 'isa/rv64sv')
-rw-r--r--isa/rv64sv/ma_vt_inst.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/isa/rv64sv/ma_vt_inst.S b/isa/rv64sv/ma_vt_inst.S
index cd7762d..d772041 100644
--- a/isa/rv64sv/ma_vt_inst.S
+++ b/isa/rv64sv/ma_vt_inst.S
@@ -48,6 +48,8 @@ handler:
# check badvaddr
vxcptaux a3
la a4,vtcode1+2
+ andi a3, a3, -4 # mask off lower bits so that may
+ andi a4, a4, -4 # ignore impl. specific behavior
bne a3,a4,fail
# make sure vector unit has cleared out