Browse Source

triggers: refactor: use static and remove const for legalize_match()

Since this method no longer use 'this', we turn this method into static.
pull/1214/head
YenHaoChen 4 years ago
parent
commit
1fc34a04d6
  1. 2
      riscv/triggers.cc
  2. 2
      riscv/triggers.h

2
riscv/triggers.cc

@ -221,7 +221,7 @@ std::optional<match_result_t> mcontrol_common_t::detect_memory_access_match(proc
return std::nullopt;
}
mcontrol_common_t::match_t mcontrol_common_t::legalize_match(reg_t val) const noexcept
mcontrol_common_t::match_t mcontrol_common_t::legalize_match(reg_t val) noexcept
{
switch (val) {
case MATCH_EQUAL:

2
riscv/triggers.h

@ -207,7 +207,7 @@ private:
bool simple_match(unsigned xlen, reg_t value) const;
protected:
match_t legalize_match(reg_t val) const noexcept;
static match_t legalize_match(reg_t val) noexcept;
static bool legalize_timing(reg_t val, reg_t timing_mask, reg_t select_mask, reg_t execute_mask, reg_t load_mask) noexcept;
bool dmode = false;
action_t action = ACTION_DEBUG_EXCEPTION;

Loading…
Cancel
Save