aboutsummaryrefslogtreecommitdiff
path: root/riscv/csrs.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r--riscv/csrs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h
index 5dab1fc..65be799 100644
--- a/riscv/csrs.h
+++ b/riscv/csrs.h
@@ -256,6 +256,13 @@ class mstatus_csr_t final: public base_status_csr_t {
typedef std::shared_ptr<mstatus_csr_t> mstatus_csr_t_p;
+class mnstatus_csr_t final: public basic_csr_t {
+ public:
+ mnstatus_csr_t(processor_t* const proc, const reg_t addr);
+ protected:
+ virtual bool unlogged_write(const reg_t val) noexcept override;
+};
+
// For RV32 CSRs that are split into two, e.g. mstatus/mstatush
// CSRW should only modify the lower half
class rv32_low_csr_t: public csr_t {