diff options
author | Tim Newsome <tim@sifive.com> | 2022-04-05 10:50:46 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2022-04-07 09:36:21 -0700 |
commit | dc7ee32367c5eb6429bfdcfc2dd8d557cc570b95 (patch) | |
tree | a133f82b3cbc41cd1ad60de18b860cd180b22514 /riscv/triggers.cc | |
parent | 7d610d036da40401e21a9147a6d9050fef6b0b38 (diff) | |
download | spike-dc7ee32367c5eb6429bfdcfc2dd8d557cc570b95.zip spike-dc7ee32367c5eb6429bfdcfc2dd8d557cc570b95.tar.gz spike-dc7ee32367c5eb6429bfdcfc2dd8d557cc570b95.tar.bz2 |
Pass ref instead of pointer to trigger_updated()
Diffstat (limited to 'riscv/triggers.cc')
-rw-r--r-- | riscv/triggers.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/triggers.cc b/riscv/triggers.cc index eda6630..69888bf 100644 --- a/riscv/triggers.cc +++ b/riscv/triggers.cc @@ -186,7 +186,7 @@ reg_t module_t::tdata1_read(const processor_t * const proc, unsigned index) cons bool module_t::tdata1_write(processor_t * const proc, unsigned index, const reg_t val) noexcept { bool result = triggers[index]->tdata1_write(proc, val); - proc->trigger_updated(&triggers); + proc->trigger_updated(triggers); return result; } @@ -198,7 +198,7 @@ reg_t module_t::tdata2_read(const processor_t * const proc, unsigned index) cons bool module_t::tdata2_write(processor_t * const proc, unsigned index, const reg_t val) noexcept { bool result = triggers[index]->tdata2_write(proc, val); - proc->trigger_updated(&triggers); + proc->trigger_updated(triggers); return result; } |