diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-22 17:54:30 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-26 17:17:52 -0700 |
commit | c3f918afad4e57ba9dcc2eb4c00ebb76e981108a (patch) | |
tree | 96f68280d9fdf664096fa84c04eb6b83316f122f /riscv/csrs.h | |
parent | 2c9648735e5f7ba6d3e68bd20f6b9b599743016c (diff) | |
download | spike-c3f918afad4e57ba9dcc2eb4c00ebb76e981108a.zip spike-c3f918afad4e57ba9dcc2eb4c00ebb76e981108a.tar.gz spike-c3f918afad4e57ba9dcc2eb4c00ebb76e981108a.tar.bz2 |
Convert dpc to csr_t
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index c293554..c9c5584 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -537,4 +537,10 @@ class debug_mode_csr_t: public basic_csr_t { typedef std::shared_ptr<tdata2_csr_t> tdata2_csr_t_p; +class dpc_csr_t: public epc_csr_t { + public: + dpc_csr_t(processor_t* const proc, const reg_t addr); + virtual void verify_permissions(insn_t insn, bool write) const override; +}; + #endif |