From f84936393dccd1367d3cb2a1fa060e77eb7babec Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Tue, 17 Mar 2015 04:35:24 -0700 Subject: relay hwacha cause/aux to scause/sbadaddr --- isa/macros/scalar/test_macros.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'isa/macros') 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; \ -- cgit v1.1