From 85fd2a288bba6e8dedbc1fde3e8bc7c0f77e3bcc Mon Sep 17 00:00:00 2001 From: chengguanghui Date: Mon, 30 Sep 2024 12:15:28 +0800 Subject: [PATCH] fix(tinfo): CPU_XIANGSHAN's Trigger Module support Mcontrol6. --- riscv/triggers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/triggers.cc b/riscv/triggers.cc index 19dec8fa1d..444a9385b9 100644 --- a/riscv/triggers.cc +++ b/riscv/triggers.cc @@ -639,7 +639,7 @@ std::optional 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) |