diff options
author | YenHaoChen <howard25336284@gmail.com> | 2023-01-04 09:26:47 +0800 |
---|---|---|
committer | YenHaoChen <howard25336284@gmail.com> | 2023-01-04 09:26:47 +0800 |
commit | c0cc59d5c4febaf1f45688e865e39e55b4cc72e3 (patch) | |
tree | 7ad6b72ea5b9c7d563dd1a5c1addef946869173a | |
parent | c8ea412319f763261c4b5ccad0140c9c5cb76727 (diff) | |
download | riscv-isa-sim-c0cc59d5c4febaf1f45688e865e39e55b4cc72e3.zip riscv-isa-sim-c0cc59d5c4febaf1f45688e865e39e55b4cc72e3.tar.gz riscv-isa-sim-c0cc59d5c4febaf1f45688e865e39e55b4cc72e3.tar.bz2 |
triggers: refactor: move get_action() to trap_common_t from itrigger_t/etrigger_t
-rw-r--r-- | riscv/triggers.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/riscv/triggers.h b/riscv/triggers.h index 90c2040..dec4d98 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -148,6 +148,7 @@ private: class trap_common_t : public trigger_t { public: bool get_dmode() const override { return dmode; } + virtual action_t get_action() const override { return action; } protected: bool dmode; @@ -160,8 +161,6 @@ public: virtual reg_t tdata1_read(const processor_t * const proc) const noexcept override; virtual void tdata1_write(processor_t * const proc, const reg_t val, const bool allow_chain) noexcept override; - virtual action_t get_action() const override { return action; } - virtual std::optional<match_result_t> detect_trap_match(processor_t * const proc, const trap_t& t) noexcept override; private: @@ -174,8 +173,6 @@ public: virtual reg_t tdata1_read(const processor_t * const proc) const noexcept override; virtual void tdata1_write(processor_t * const proc, const reg_t val, const bool allow_chain) noexcept override; - virtual action_t get_action() const override { return action; } - virtual std::optional<match_result_t> detect_trap_match(processor_t * const proc, const trap_t& t) noexcept override; private: |