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/processor.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/processor.cc')
-rw-r--r-- | riscv/processor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/processor.cc b/riscv/processor.cc index ef2d05b..1287576 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -988,14 +988,14 @@ bool processor_t::store(reg_t addr, size_t len, const uint8_t* bytes) return false; } -void processor_t::trigger_updated(const std::vector<triggers::trigger_t *> *triggers) +void processor_t::trigger_updated(const std::vector<triggers::trigger_t *> &triggers) { mmu->flush_tlb(); mmu->check_triggers_fetch = false; mmu->check_triggers_load = false; mmu->check_triggers_store = false; - for (auto trigger : *triggers) { + for (auto trigger : triggers) { if (trigger->execute()) { mmu->check_triggers_fetch = true; } |