Skip to content

Commit 4866fbb

Browse files
committed
fix(tinfo): CPU_XIANGSHAN's Trigger Module support Mcontrol6.
1 parent 53ee7af commit 4866fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/triggers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ std::optional<match_result_t> module_t::detect_trap_match(const trap_t& t) noexc
639639
reg_t module_t::tinfo_read(unsigned UNUSED index) const noexcept
640640
{
641641
#if defined(DIFFTEST) && defined(CPU_XIANGSHAN)
642-
return (1 << CSR_TDATA1_TYPE_MCONTROL) ;
642+
return (1 << CSR_TDATA1_TYPE_MCONTROL6) ;
643643
#else
644644
/* In spike, every trigger supports the same types. */
645645
return (1 << CSR_TDATA1_TYPE_MCONTROL) |

0 commit comments

Comments
 (0)