From 7494ce06ebf59d687d23974fa6d1f1a3427a98e9 Mon Sep 17 00:00:00 2001 From: harshinisrinath Date: Sun, 20 Aug 2023 12:10:08 -0700 Subject: [PATCH] wrote testcase to write into FSCR --- tests/coverage/priv.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/coverage/priv.S b/tests/coverage/priv.S index f728a007e..0dff00f37 100644 --- a/tests/coverage/priv.S +++ b/tests/coverage/priv.S @@ -90,6 +90,9 @@ sretdone: li a0, 3 ecall # machine mode again + # writes to FCSR + li t0, 1 + csrw fcsr, t0 # switch to supervisor mode li a0, 1