aboutsummaryrefslogtreecommitdiff
path: root/isa/macros
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/macros
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/macros')
-rw-r--r--isa/macros/scalar/test_macros.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/isa/macros/scalar/test_macros.h b/isa/macros/scalar/test_macros.h
index b4d0d78..83116f2 100644
--- a/isa/macros/scalar/test_macros.h
+++ b/isa/macros/scalar/test_macros.h
@@ -596,10 +596,10 @@ vtcode2 ## testnum: \
handler ## testnum: \
vxcptkill; \
li TESTNUM,2; \
- vxcptcause a0; \
+ csrr a0, scause; \
li a1,HWACHA_CAUSE_TVEC_ILLEGAL_REGID; \
bne a0,a1,fail; \
- vxcptaux a0; \
+ csrr a0, sbadaddr; \
la a1, illegal ## testnum; \
lw a2, 0(a1); \
bne a0, a2, fail; \
@@ -655,10 +655,10 @@ vtcode2 ## testnum: \
handler ## testnum: \
vxcptkill; \
li TESTNUM,2; \
- vxcptcause a0; \
+ csrr a0, scause; \
li a1,HWACHA_CAUSE_VF_ILLEGAL_REGID; \
bne a0,a1,fail; \
- vxcptaux a0; \
+ csrr a0, sbadaddr; \
la a1,illegal ## testnum; \
bne a0,a1,fail; \
vsetcfg 32,0; \