From bf9db11a5742dfe2a40839c1feb6f6c5a3b95903 Mon Sep 17 00:00:00 2001 From: David Harris Date: Fri, 7 Apr 2023 20:44:01 -0700 Subject: [PATCH] Fixed priv.S to initialize stimecmp and agree with ImperasDV --- tests/coverage/priv.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/coverage/priv.S b/tests/coverage/priv.S index c4e9e302d..e9a04a68f 100644 --- a/tests/coverage/priv.S +++ b/tests/coverage/priv.S @@ -33,7 +33,8 @@ main: ecall # Test read to stimecmp fails when MCOUNTEREN_TM is not set - addi t0, zero, 0 + li t1, -3 + csrw stimecmp, t1 csrr t0, stimecmp