From dc7ee32367c5eb6429bfdcfc2dd8d557cc570b95 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 5 Apr 2022 10:50:46 -0700 Subject: Pass ref instead of pointer to trigger_updated() --- riscv/triggers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscv/triggers.cc') 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; } -- cgit v1.1