diff options
author | YenHaoChen <howard25336284@gmail.com> | 2023-01-12 08:51:36 +0800 |
---|---|---|
committer | YenHaoChen <howard25336284@gmail.com> | 2023-01-13 12:07:45 +0800 |
commit | e3efb15eca0b020ecc0c6db4e5c6ad48501a8708 (patch) | |
tree | f412f1bb4502205c84578de338e22acf8c2e1d3e /riscv/triggers.h | |
parent | 1fc34a04d6ee3c78d5749c79a87fee8fb43ab8ee (diff) | |
download | riscv-isa-sim-e3efb15eca0b020ecc0c6db4e5c6ad48501a8708.zip riscv-isa-sim-e3efb15eca0b020ecc0c6db4e5c6ad48501a8708.tar.gz riscv-isa-sim-e3efb15eca0b020ecc0c6db4e5c6ad48501a8708.tar.bz2 |
triggers: refactor: use static and remove const for legalize_action()
Since this method does not use 'this', we turn this method into static.
Diffstat (limited to 'riscv/triggers.h')
-rw-r--r-- | riscv/triggers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/triggers.h b/riscv/triggers.h index f141560..bc64c4d 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -85,7 +85,7 @@ public: virtual std::optional<match_result_t> detect_trap_match(processor_t UNUSED * const proc, const trap_t UNUSED & t) noexcept { return std::nullopt; } protected: - action_t legalize_action(reg_t val, reg_t action_mask, reg_t dmode_mask) const noexcept; + static action_t legalize_action(reg_t val, reg_t action_mask, reg_t dmode_mask) noexcept; bool common_match(processor_t * const proc) const noexcept; reg_t tdata2; |