diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-14 20:39:14 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-20 12:55:06 -0700 |
commit | 4526550db3050011bf459b2cd5abdec51f212d83 (patch) | |
tree | 6c38e3eaf6f07451fa3dd55fb7264acde528fc2e /riscv/csrs.h | |
parent | 55a272562ea12abc2fe3057e89247615525b7cc7 (diff) | |
download | spike-4526550db3050011bf459b2cd5abdec51f212d83.zip spike-4526550db3050011bf459b2cd5abdec51f212d83.tar.gz spike-4526550db3050011bf459b2cd5abdec51f212d83.tar.bz2 |
Simplify logic and eliminate cpp macros
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index 392bb4d..f96e7bd 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -479,6 +479,8 @@ class counter_proxy_csr_t: public proxy_csr_t { public: counter_proxy_csr_t(processor_t* const proc, const reg_t addr, csr_t_p delegate); virtual void verify_permissions(insn_t insn, bool write) const override; + private: + bool myenable(csr_t_p counteren) const noexcept; }; #endif |