History log of /XiangShan/src/main/scala/xiangshan/backend/fu/NewCSR/TrapInstMod.scala (Results 1 – 5 of 5)
Revision Date Author Comments
# 5860cb70 21-Sep-2024 Zhaoyang You <[email protected]>

fix(csr): fix trap inst update when CSRR insts raise trap and remove useless io (#3620)

This PR fix trap inst update.
Because of CSRR inst is out of order insts, trap inst should select the
oldest

fix(csr): fix trap inst update when CSRR insts raise trap and remove useless io (#3620)

This PR fix trap inst update.
Because of CSRR inst is out of order insts, trap inst should select the
oldest trap inst when CSRR inst raise trap.

---------

Co-authored-by: Xuan Hu <[email protected]>

show more ...


# cbff1a51 26-Aug-2024 Xuan Hu <[email protected]>

CSR: store ftqInfo of csr inst to avoid wrong flush


# eec4ee3a 19-Aug-2024 Xuan Hu <[email protected]>

CSR: fix trap inst update condition

* Never update trap inst if TrapInstMod already has valid inst.
* CSR illegal has higher priority to update trap inst, since the inst executed in CSR is order tha

CSR: fix trap inst update condition

* Never update trap inst if TrapInstMod already has valid inst.
* CSR illegal has higher priority to update trap inst, since the inst executed in CSR is order than all insts in decode stage

show more ...


# 84ff1b75 18-Aug-2024 Xuan Hu <[email protected]>

Backend: only store 16 bits instr in tval when C extension EX_II occurs


# 92c61038 16-Aug-2024 Xuan Hu <[email protected]>

Frontend,Backend: add xxtvala support

* utils
* Add checkInputWidth function in NamedUInt to check if the UInt arg passed in has the same width as it defined.
* Frontend
* Pass the unexpanded in

Frontend,Backend: add xxtvala support

* utils
* Add checkInputWidth function in NamedUInt to check if the UInt arg passed in has the same width as it defined.
* Frontend
* Pass the unexpanded instruciton to IBuffer if the C extension 16 bits instruction is illegal.
* No need to use bypass illBuf, since the origin 16 bits instruction will be passed in the ctrlflow bundle.
* IBuffer
* Merge exceptionType and crossPageIPFFix into 3bit field, which type is IBufferExceptionType.
* IBufferExceptionType can hold illegal instruction exception.
* Backend
* CSROpType.ro is removed, since we can use rs1 and rd passed in imm field to distinguish CSRR and CSRW in CSR module.
* Create TrapInstMod to store the trap instruction and handle its update.

show more ...