From 447d01a163c2481674d9f857811ed30d2932a349 Mon Sep 17 00:00:00 2001 From: Jalali <110232072+AyoubJalali@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:09:10 +0000 Subject: [PATCH] [Verif] Clear MIP CSR to avoid trapping in CSR tests (resume #1660) (#1661) --- verif/tests/custom/csr_embedded/csrrw_ro_test.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/verif/tests/custom/csr_embedded/csrrw_ro_test.S b/verif/tests/custom/csr_embedded/csrrw_ro_test.S index e591e17a34..7e5c1b26ae 100644 --- a/verif/tests/custom/csr_embedded/csrrw_ro_test.S +++ b/verif/tests/custom/csr_embedded/csrrw_ro_test.S @@ -984,6 +984,11 @@ main: #MIP read value csrr x14, 0x344 + #Clear MIP to avoid traping + csrw 0x344, x0 + + #MIP read value + csrr x14, 0x344 ########################## #PMPADDR3 testing W/R values '{'hffffffff, 'h0, 'h55555555, 'haaaaaaaa, 'hf479076} ##########################