diff options
author | Tim Newsome <tim@sifive.com> | 2022-04-05 10:23:24 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2022-04-07 09:36:16 -0700 |
commit | f30ec24c07dbf5c00840ce3a8dad702116a45a15 (patch) | |
tree | fe66f6edffb2027078604eec29bffe6cc9a49a20 /riscv/triggers.cc | |
parent | 4216b42785e729968dbcc5f4adc8436a7ffc425a (diff) | |
download | spike-f30ec24c07dbf5c00840ce3a8dad702116a45a15.zip spike-f30ec24c07dbf5c00840ce3a8dad702116a45a15.tar.gz spike-f30ec24c07dbf5c00840ce3a8dad702116a45a15.tar.bz2 |
Add module_t::~module_t()
Also add virtual destructor trigger_t.
Diffstat (limited to 'riscv/triggers.cc')
-rw-r--r-- | riscv/triggers.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/triggers.cc b/riscv/triggers.cc index b80663d..082bfb9 100644 --- a/riscv/triggers.cc +++ b/riscv/triggers.cc @@ -147,6 +147,12 @@ module_t::module_t(unsigned count) : triggers(count) { } } +module_t::~module_t() { + for (auto trigger : triggers) { + delete trigger; + } +} + match_result_t module_t::memory_access_match(action_t *action, operation_t operation, reg_t address, reg_t data) { state_t *state = proc->get_state(); |