diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2022-12-01 09:21:58 -0800 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2022-12-01 09:22:01 -0800 |
commit | a315193ab08abc3aaaa1885370253992c110b6ec (patch) | |
tree | a6f44ec1d0f9d93fa335fd20fe6815e162350870 /riscv/triggers.h | |
parent | 024533d921eadd44149a7361d3d94217593ef2a0 (diff) | |
download | riscv-isa-sim-a315193ab08abc3aaaa1885370253992c110b6ec.zip riscv-isa-sim-a315193ab08abc3aaaa1885370253992c110b6ec.tar.gz riscv-isa-sim-a315193ab08abc3aaaa1885370253992c110b6ec.tar.bz2 |
Convert triggers::module_t::detect_memory_access_match to std::optional
Goal is to remove match_result_t.fire field to eliminate dont-care
fields when fire=false.
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 0b58798..27f1c0e 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -186,7 +186,7 @@ public: unsigned count() const { return triggers.size(); } - match_result_t detect_memory_access_match(operation_t operation, reg_t address, std::optional<reg_t> data) noexcept; + 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; processor_t *proc; |