History log of /XiangShan/src/main/scala/xiangshan/backend/fu/NewCSR/TrapHandleModule.scala (Results 1 – 19 of 19)
Revision Date Author Comments
# bcc5f81f 18-Apr-2025 Zhaoyang You <[email protected]>

fix(csr): fix trap handle bundle format (#4579)


# 22872cfd 02-Dec-2024 sinceforYy <[email protected]>

area(csr): intr NO bits is reduced from 64 to 8


# 74fd4f59 20-Dec-2024 Zehao Liu <[email protected]>

fix(NewCSR): fix the error of trap entry PC in vs mode interrupts (#4064)

* calculate VSSIP, VSTIP, VSEIP trap entry in VSmode should use vscause after mapping


# a5cb9e82 06-Nov-2024 sinceforYy <[email protected]>

fix(intr): fix interrupt trap to which mode to handle


# 3113cca9 28-Oct-2024 sinceforYy <[email protected]>

fix(csr): fix interrupt code use xtopi.IID replace instread of xip & xie


# 6808b803 29-Oct-2024 Zehao Liu <[email protected]>

feat(Ss/Smdbltrp) : Support RISC-V Ss/Smdbltrp Extension (#3789)

* NEMU commit: 066cb1f1c61feb21153399c26ca393dfb3a560d7
* NEMU configs:
* riscv64-xs-ref_defconfig
* riscv64-dual-xs-ref_defco

feat(Ss/Smdbltrp) : Support RISC-V Ss/Smdbltrp Extension (#3789)

* NEMU commit: 066cb1f1c61feb21153399c26ca393dfb3a560d7
* NEMU configs:
* riscv64-xs-ref_defconfig
* riscv64-dual-xs-ref_defconfig

Including:
* fix(format): adjust code format and add one config (OpenXiangShan/NEMU#603)
* fix(vfredusum): set xstatus.fs and xstatus.vs dirty (OpenXiangShan/NEMU#605)
* fix(vf): do not set dirtyFs for some instructions (OpenXiangShan/NEMU#606)
* feat(trigger): add trigger support for rva.
* configs(xs): open Sm/sdbltrp extension and add MDT_INIT config (OpenXiangShan/NEMU#604)

---

* spike commit: c0b18d3913d8ceac83743a053a7dbd2fb8716c83
* spike config: CPU=XIANGSHAN

Including:
* fix(rva, trigger): For rva instr, raise BP from trigger prior to misaligned.
* fix(Makefile): Increase maxdepth for finding .h files.
* fix(tdata1): CPU_XIANGSHAN do not implement hit bit in tdata1.
* fix(icount): place the read before the return of the detect_icount_match.

show more ...


# 9205730d 04-Sep-2024 sinceforYy <[email protected]>

fix(csr): add support virtual interrupt for hvictl csr injection


# c2a2229d 05-Sep-2024 lewislzh <[email protected]>

feat(riscv64): support RISC-V Smrnmi extension (#3480)


# 7e0f64b0 21-Aug-2024 Guanghui Cheng <[email protected]>

Trigger: refactor trigger information in pipeline. (#3403)


# a3dd7166 02-Aug-2024 Xuan Hu <[email protected]>

CSR: fix custom IRQ injection mechanism

* The injected interrupts for HS mode can set some bits in mIRVec and hsIRVec.
* `mIRVec` holds the highest priority interrupt numbered from 1 to 63. Only int

CSR: fix custom IRQ injection mechanism

* The injected interrupts for HS mode can set some bits in mIRVec and hsIRVec.
* `mIRVec` holds the highest priority interrupt numbered from 1 to 63. Only interrupt 1~13 can trap in M mode. And interrupt 14~63 must trap in HS mode or VS mode, since bits in mideleg(63,14) are read-only 0.
* `hsIRVec` holds the mip parts(by mIRVec & mideleg) and mvip parts(by mIRVec & ~mideleg & mvien) interrupts.
* `vsIRVec` holds the sip|hip parts(by hsIRVec & hideleg) and hvip parts(by hsIRVec & ~hideleg & hvien) interrupts.

show more ...


# 3174481b 06-Aug-2024 Xuan Hu <[email protected]>

CSR: add custom IRQ injection mechanism (#3338)

* All major interrupts have been splited into 7 groups
* Custom highest group
* Local high group
* Custom middle-high group
* Priviledge a

CSR: add custom IRQ injection mechanism (#3338)

* All major interrupts have been splited into 7 groups
* Custom highest group
* Local high group
* Custom middle-high group
* Priviledge architecture group
* Custom middle-low group
* Local low group
* Custom lowest group

show more ...


# 69de61be 12-Jun-2024 Xuan Hu <[email protected]>

NewCSR: fix highest EX/IR produce


# 73e616de 11-Jun-2024 Xuan Hu <[email protected]>

NewCSR: VS level interrupt should map as VS level in higher privilege


# a7a6d0a6 23-May-2024 chengguanghui <[email protected]>

NewCSR: Refactor CSR about Debug

* add CSR: trigger csr & debug csr

* add CSR event: TrapEntryDEvent & DretEvent

* fixed trigger's comparison func between Consecutive pc and tdada2


# ea3647bc 20-May-2024 Xuan Hu <[email protected]>

NewCSR: only exception raised in VS/VU mode can be delegated to VS mode


# d5f305ce 16-May-2024 sinceforYy <[email protected]>

NewCSR: fix trapHandle intrVec

* we store intrVec in newCSR reg when interrupt valid


# 348594dd 16-May-2024 sinceforYy <[email protected]>

NewCSR: fix pcFromXtvec in trapHandle

* We should use xtvec.mode instead of mtvec.mode to compare with XtvecMode.vectored when a trap occurs


# 0c2ba7ae 15-Apr-2024 Xuan Hu <[email protected]>

NewCSR: fix target pc of trap entry event


# dafddbf0 12-Apr-2024 Xuan Hu <[email protected]>

NewCSR: add TrapHandleModule to handle trap delegation and dispatch traps