aboutsummaryrefslogtreecommitdiff
path: root/riscv/processor.h
diff options
context:
space:
mode:
authorWeiwei Li <liweiwei@iscas.ac.cn>2022-07-06 10:45:04 +0800
committerWeiwei Li <liweiwei@iscas.ac.cn>2022-07-09 08:56:00 +0800
commit2bf74857f0f7f3a63e029d7c7ecaf3d4523a846e (patch)
treead5f41de37fa05c7097f0788cca850e2b932cf01 /riscv/processor.h
parent9b66f89b8102f032f721fe332819325508aa3b95 (diff)
downloadspike-2bf74857f0f7f3a63e029d7c7ecaf3d4523a846e.zip
spike-2bf74857f0f7f3a63e029d7c7ecaf3d4523a846e.tar.gz
spike-2bf74857f0f7f3a63e029d7c7ecaf3d4523a846e.tar.bz2
add support for csrs of smstateen extensions
Diffstat (limited to 'riscv/processor.h')
-rw-r--r--riscv/processor.h4
1 files changed, 4 insertions, 0 deletions
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