From 2bf74857f0f7f3a63e029d7c7ecaf3d4523a846e Mon Sep 17 00:00:00 2001 From: Weiwei Li Date: Wed, 6 Jul 2022 10:45:04 +0800 Subject: add support for csrs of smstateen extensions --- riscv/processor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'riscv/processor.h') diff --git a/riscv/processor.h b/riscv/processor.h index 0c6a6b2..727c404 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -186,6 +186,10 @@ struct state_t csr_t_p senvcfg; csr_t_p henvcfg; + csr_t_p mstateen[4]; + csr_t_p sstateen[4]; + csr_t_p hstateen[4]; + bool serialized; // whether timer CSRs are in a well-defined state // When true, execute a single instruction and then enter debug mode. This -- cgit v1.1