diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2022-12-01 08:45:50 -0800 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2022-12-01 08:45:50 -0800 |
commit | 35803393d984c4287d296aced53211f5fc2d6881 (patch) | |
tree | ec3931e3aed3bd9535bca37f2701b9be4500d467 /riscv/triggers.h | |
parent | 9b6138a1b634decdcdb0aa7a7b2a629229387597 (diff) | |
download | riscv-isa-sim-35803393d984c4287d296aced53211f5fc2d6881.zip riscv-isa-sim-35803393d984c4287d296aced53211f5fc2d6881.tar.gz riscv-isa-sim-35803393d984c4287d296aced53211f5fc2d6881.tar.bz2 |
Add noexcept to trigger-matching functions
To make it clear that breakpoint exceptions are not thrown in these
methods.
Diffstat (limited to 'riscv/triggers.h')
-rw-r--r-- | riscv/triggers.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/riscv/triggers.h b/riscv/triggers.h index a287849..428dfda 100644 --- a/riscv/triggers.h +++ b/riscv/triggers.h @@ -68,8 +68,8 @@ public: virtual action_t get_action() const { return ACTION_DEBUG_EXCEPTION; } virtual match_result_t detect_memory_access_match(processor_t UNUSED * const proc, - operation_t UNUSED operation, reg_t UNUSED address, std::optional<reg_t> UNUSED data) { return match_result_t(false); } - virtual match_result_t detect_trap_match(processor_t UNUSED * const proc, const trap_t UNUSED & t) { return match_result_t(false); } + operation_t UNUSED operation, reg_t UNUSED address, std::optional<reg_t> UNUSED data) noexcept { return match_result_t(false); } + virtual match_result_t detect_trap_match(processor_t UNUSED * const proc, const trap_t UNUSED & t) noexcept { return match_result_t(false); } protected: reg_t tdata2; @@ -94,7 +94,7 @@ public: bool get_dmode() const override { return dmode; } virtual action_t get_action() const override { return action; } - virtual match_result_t detect_trap_match(processor_t * const proc, const trap_t& t) override; + virtual match_result_t detect_trap_match(processor_t * const proc, const trap_t& t) noexcept override; private: bool dmode; @@ -116,7 +116,7 @@ public: bool get_dmode() const override { return dmode; } virtual action_t get_action() const override { return action; } - virtual match_result_t detect_trap_match(processor_t * const proc, const trap_t& t) override; + virtual match_result_t detect_trap_match(processor_t * const proc, const trap_t& t) noexcept override; private: bool dmode; @@ -152,7 +152,7 @@ public: virtual action_t get_action() const override { return action; } virtual match_result_t detect_memory_access_match(processor_t * const proc, - operation_t operation, reg_t address, std::optional<reg_t> data) override; + operation_t operation, reg_t address, std::optional<reg_t> data) noexcept override; private: bool simple_match(unsigned xlen, reg_t value) const; @@ -185,8 +185,8 @@ 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); - match_result_t detect_trap_match(const trap_t& t); + 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; private: |