Browse Source

Use ACTION_DEBUG_MODE instead of 1

Signed-off-by: YenHaoChen <39526191+YenHaoChen@users.noreply.github.com>
itrigger-etrigger-cleanup
YenHaoChen 3 years ago
committed by Tim Newsome
parent
commit
388753f941
  1. 2
      riscv/triggers.cc

2
riscv/triggers.cc

@ -233,7 +233,7 @@ bool etrigger_t::tdata1_write(processor_t * const proc, const reg_t val) noexcep
s = proc->extension_enabled('S') ? get_field(val, CSR_ETRIGGER_S) : 0;
u = proc->extension_enabled('U') ? get_field(val, CSR_ETRIGGER_U) : 0;
action = (action_t)get_field(val, CSR_ETRIGGER_ACTION);
if (action > 4 || (action==1 && dmode==0))
if (action > 4 || (action==ACTION_DEBUG_MODE && dmode==0))
action = ACTION_DEBUG_EXCEPTION;
return true;
}

Loading…
Cancel
Save