Skip to content

Commit

Permalink
fix(tinfo): CPU_XIANGSHAN's Trigger Module support Mcontrol6.
Browse files Browse the repository at this point in the history
  • Loading branch information
wissygh authored and huxuan0307 committed Sep 30, 2024
1 parent 53ee7af commit 85fd2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/triggers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ std::optional<match_result_t> module_t::detect_trap_match(const trap_t& t) noexc
reg_t module_t::tinfo_read(unsigned UNUSED index) const noexcept
{
#if defined(DIFFTEST) && defined(CPU_XIANGSHAN)
return (1 << CSR_TDATA1_TYPE_MCONTROL) ;
return (1 << CSR_TDATA1_TYPE_MCONTROL6) ;
#else
/* In spike, every trigger supports the same types. */
return (1 << CSR_TDATA1_TYPE_MCONTROL) |
Expand Down

0 comments on commit 85fd2a2

Please sign in to comment.