aboutsummaryrefslogtreecommitdiff
path: root/riscv/execute.cc
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-03-15 08:52:32 -0700
committerTim Newsome <tim@sifive.com>2022-03-30 10:41:44 -0700
commit08442c1aad70be858f177e277b02a340a22346ba (patch)
treead04cfbbca29e1ca61dccfd3ea4ad88fdaf681de /riscv/execute.cc
parenta2a2587426e57f6207d5389620e9109bc0f82e6b (diff)
downloadspike-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.cc4
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;