From ce471c7f6845e26aa27af1c132458de68ab0bde9 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Tue, 5 Nov 2013 20:59:06 -0800 Subject: [PATCH] correctly set SR_EA bit for all vector physical supervisor tests --- isa/rv64sv/illegal_cfg_nfpr.S | 1 + isa/rv64sv/illegal_cfg_nxpr.S | 1 + isa/rv64sv/illegal_inst.S | 1 + isa/rv64sv/illegal_tvec_regid.S | 2 ++ isa/rv64sv/illegal_vt_inst.S | 1 + isa/rv64sv/illegal_vt_regid.S | 2 ++ isa/rv64sv/ma_utld.S | 1 + isa/rv64sv/ma_utsd.S | 1 + isa/rv64sv/ma_vld.S | 1 + isa/rv64sv/ma_vsd.S | 1 + isa/rv64sv/ma_vt_inst.S | 1 + isa/rv64sv/privileged_inst.S | 1 + 12 files changed, 14 insertions(+) diff --git a/isa/rv64sv/illegal_cfg_nfpr.S b/isa/rv64sv/illegal_cfg_nfpr.S index b271268..2440cbb 100644 --- a/isa/rv64sv/illegal_cfg_nfpr.S +++ b/isa/rv64sv/illegal_cfg_nfpr.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/illegal_cfg_nxpr.S b/isa/rv64sv/illegal_cfg_nxpr.S index 8dac90d..c61d4d9 100644 --- a/isa/rv64sv/illegal_cfg_nxpr.S +++ b/isa/rv64sv/illegal_cfg_nxpr.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/illegal_inst.S b/isa/rv64sv/illegal_inst.S index cddae29..ff8cee1 100644 --- a/isa/rv64sv/illegal_inst.S +++ b/isa/rv64sv/illegal_inst.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/illegal_tvec_regid.S b/isa/rv64sv/illegal_tvec_regid.S index d57aeca..4cfa1e0 100644 --- a/isa/rv64sv/illegal_tvec_regid.S +++ b/isa/rv64sv/illegal_tvec_regid.S @@ -11,6 +11,8 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator + mfpcr a3,status li a4,(1 << IRQ_COP) slli a4,a4,SR_IM_SHIFT diff --git a/isa/rv64sv/illegal_vt_inst.S b/isa/rv64sv/illegal_vt_inst.S index de026f4..9bb586b 100644 --- a/isa/rv64sv/illegal_vt_inst.S +++ b/isa/rv64sv/illegal_vt_inst.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/illegal_vt_regid.S b/isa/rv64sv/illegal_vt_regid.S index e612a86..120facc 100644 --- a/isa/rv64sv/illegal_vt_regid.S +++ b/isa/rv64sv/illegal_vt_regid.S @@ -11,6 +11,8 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator + mfpcr a3,status li a4,(1 << IRQ_COP) slli a4,a4,SR_IM_SHIFT diff --git a/isa/rv64sv/ma_utld.S b/isa/rv64sv/ma_utld.S index 2cc42bc..aff6e1a 100644 --- a/isa/rv64sv/ma_utld.S +++ b/isa/rv64sv/ma_utld.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/ma_utsd.S b/isa/rv64sv/ma_utsd.S index ead6c2c..20249e3 100644 --- a/isa/rv64sv/ma_utsd.S +++ b/isa/rv64sv/ma_utsd.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/ma_vld.S b/isa/rv64sv/ma_vld.S index 3ea11e9..b353c43 100644 --- a/isa/rv64sv/ma_vld.S +++ b/isa/rv64sv/ma_vld.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/ma_vsd.S b/isa/rv64sv/ma_vsd.S index fbbc0cd..227955c 100644 --- a/isa/rv64sv/ma_vsd.S +++ b/isa/rv64sv/ma_vsd.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/ma_vt_inst.S b/isa/rv64sv/ma_vt_inst.S index d76f26c..85667e4 100644 --- a/isa/rv64sv/ma_vt_inst.S +++ b/isa/rv64sv/ma_vt_inst.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler diff --git a/isa/rv64sv/privileged_inst.S b/isa/rv64sv/privileged_inst.S index 3f04f60..64a7508 100644 --- a/isa/rv64sv/privileged_inst.S +++ b/isa/rv64sv/privileged_inst.S @@ -11,6 +11,7 @@ RVTEST_RV64S RVTEST_CODE_BEGIN + setpcr status, SR_EA # enable accelerator setpcr status, SR_EI # enable interrupt la a3,handler -- 2.30.2