aboutsummaryrefslogtreecommitdiff
path: root/riscv/triggers.cc
diff options
context:
space:
mode:
authorYenHaoChen <howard25336284@gmail.com>2023-02-21 12:20:47 +0800
committerYenHaoChen <howard25336284@gmail.com>2024-05-22 09:04:23 +0800
commit2f12bb8c58286c45b19ded54a242a03ec24131f7 (patch)
tree66e9e74b804f67c6ae00300eb9f6bec1db87b35b /riscv/triggers.cc
parent983eb01557e0f447fbbcb29d088bfa682787c427 (diff)
downloadriscv-isa-sim-2f12bb8c58286c45b19ded54a242a03ec24131f7.zip
riscv-isa-sim-2f12bb8c58286c45b19ded54a242a03ec24131f7.tar.gz
riscv-isa-sim-2f12bb8c58286c45b19ded54a242a03ec24131f7.tar.bz2
triggers: refactor: move mcontrol_common_t::hit to mcontrol_t::hit and mcontrol6_t::hit
Add mcontrol_common_t::set_hit()
Diffstat (limited to 'riscv/triggers.cc')
-rw-r--r--riscv/triggers.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/triggers.cc b/riscv/triggers.cc
index f8ceac3..51a5091 100644
--- a/riscv/triggers.cc
+++ b/riscv/triggers.cc
@@ -233,7 +233,7 @@ std::optional<match_result_t> mcontrol_common_t::detect_memory_access_match(proc
if (simple_match(xlen, value) && allow_action(proc->get_state())) {
/* This is OK because this function is only called if the trigger was not
* inhibited by the previous trigger in the chain. */
- hit = true;
+ set_hit(true);
return match_result_t(timing_t(timing), action);
}
return std::nullopt;