diff options
author | Tim Newsome <tim@sifive.com> | 2022-03-15 08:52:32 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2022-03-30 10:41:44 -0700 |
commit | 08442c1aad70be858f177e277b02a340a22346ba (patch) | |
tree | ad04cfbbca29e1ca61dccfd3ea4ad88fdaf681de /riscv/execute.cc | |
parent | a2a2587426e57f6207d5389620e9109bc0f82e6b (diff) | |
download | spike-08442c1aad70be858f177e277b02a340a22346ba.zip spike-08442c1aad70be858f177e277b02a340a22346ba.tar.gz spike-08442c1aad70be858f177e277b02a340a22346ba.tar.bz2 |
mcontrol_action_t -> triggers::action_t
These actions are not specific to the mcontrol trigger.
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r-- | riscv/execute.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index 72ffa27..212f273 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -325,10 +325,10 @@ void processor_t::step(size_t n) mmu->matched_trigger = NULL; } switch (state.mcontrol[t.index].action) { - case ACTION_DEBUG_MODE: + case triggers::ACTION_DEBUG_MODE: enter_debug_mode(DCSR_CAUSE_HWBP); break; - case ACTION_DEBUG_EXCEPTION: { + case triggers::ACTION_DEBUG_EXCEPTION: { trap_breakpoint trap(state.v, t.address); take_trap(trap, pc); break; |