diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2022-12-01 09:47:09 -0800 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2022-12-01 09:47:09 -0800 |
commit | a078ef221f222ca5536307c6e695999b60b2a1ff (patch) | |
tree | 8a444400baeaf3132f009956eab8896177dbee84 /riscv/triggers.h | |
parent | aa5c5a6e037bf793fb3ee47d2dca044dcdb72870 (diff) | |
download | riscv-isa-sim-a078ef221f222ca5536307c6e695999b60b2a1ff.zip riscv-isa-sim-a078ef221f222ca5536307c6e695999b60b2a1ff.tar.gz riscv-isa-sim-a078ef221f222ca5536307c6e695999b60b2a1ff.tar.bz2 |
Convert triggers::module_t::detect_trap_match to std::optional
Goal is to remove match_result_t.fire field to eliminate dont-care fields.
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 365dbe2..a782acc 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -187,7 +187,7 @@ public: unsigned count() const { return triggers.size(); } std::optional<match_result_t> detect_memory_access_match(operation_t operation, reg_t address, std::optional<reg_t> data) noexcept; - match_result_t detect_trap_match(const trap_t& t) noexcept; + std::optional<match_result_t> detect_trap_match(const trap_t& t) noexcept; processor_t *proc; private: |