aboutsummaryrefslogtreecommitdiff
path: root/riscv/csrs.h
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2022-04-11 13:19:33 -0500
committerGitHub <noreply@github.com>2022-04-11 13:19:33 -0500
commit7dc9283f31680a32110ad7f7296bde195c86399e (patch)
tree1825107be38daf706d10c2255e8b5d6ddccbd375 /riscv/csrs.h
parent69b5e6503cb7d0b8341ba19c80763cd9eb93ad96 (diff)
parentdc7ee32367c5eb6429bfdcfc2dd8d557cc570b95 (diff)
downloadspike-7dc9283f31680a32110ad7f7296bde195c86399e.zip
spike-7dc9283f31680a32110ad7f7296bde195c86399e.tar.gz
spike-7dc9283f31680a32110ad7f7296bde195c86399e.tar.bz2
Merge pull request #944 from riscv-software-src/triggers
Refactor trigger code
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r--riscv/csrs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h
index 21a9de8..fb27ae6 100644
--- a/riscv/csrs.h
+++ b/riscv/csrs.h
@@ -575,13 +575,10 @@ class tdata1_csr_t: public csr_t {
class tdata2_csr_t: public csr_t {
public:
- tdata2_csr_t(processor_t* const proc, const reg_t addr, const size_t count);
+ tdata2_csr_t(processor_t* const proc, const reg_t addr);
virtual reg_t read() const noexcept override;
- reg_t read(const size_t idx) const noexcept;
protected:
virtual bool unlogged_write(const reg_t val) noexcept override;
- private:
- std::vector<reg_t> vals;
};
// For CSRs that are only writable from debug mode