aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64sv/illegal_vt_inst.S
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2015-03-17 04:35:24 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2015-03-17 04:59:31 -0700
commitf84936393dccd1367d3cb2a1fa060e77eb7babec (patch)
tree843e9307309a1ef9a9df916915137b68b83508b3 /isa/rv64sv/illegal_vt_inst.S
parent211d78276b07b17f831cefaf79961d3e6dad3c90 (diff)
downloadriscv-tests-f84936393dccd1367d3cb2a1fa060e77eb7babec.zip
riscv-tests-f84936393dccd1367d3cb2a1fa060e77eb7babec.tar.gz
riscv-tests-f84936393dccd1367d3cb2a1fa060e77eb7babec.tar.bz2
relay hwacha cause/aux to scause/sbadaddr
Diffstat (limited to 'isa/rv64sv/illegal_vt_inst.S')
-rw-r--r--isa/rv64sv/illegal_vt_inst.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/isa/rv64sv/illegal_vt_inst.S b/isa/rv64sv/illegal_vt_inst.S
index dd61697..e216413 100644
--- a/isa/rv64sv/illegal_vt_inst.S
+++ b/isa/rv64sv/illegal_vt_inst.S
@@ -44,12 +44,12 @@ handler:
li TESTNUM,2
# check cause
- vxcptcause a3
+ csrr a3, scause
li a4,HWACHA_CAUSE_VF_ILLEGAL_INSTRUCTION
bne a3,a4,fail
# check badvaddr
- vxcptaux a3
+ csrr a3, sbadaddr
la a4,illegal
bne a3,a4,fail