History log of /XiangShan/src/main/scala/xiangshan/backend/fu/NewCSR/Unprivileged.scala (Results 1 – 24 of 24)
Revision Date Author Comments
# ceaa4109 24-Feb-2025 junxiong-ji <[email protected]>

style(csr): fix typo in CSR (#4310)


# d94fbfff 05-Jan-2025 Tang Haojin <[email protected]>

fix(Unprivileged): wait a cycle to update `time` when `nextV =/= v` (#4132)


# 2e25304f 31-Dec-2024 Xu, Zefan <[email protected]>

fix(csr): update time reg when virtual mode changes (#4111)

* Since we only implement one time register to hold the value of
`time`(used in non-virtual mode) and `time + htimedelta`(used in virtual

fix(csr): update time reg when virtual mode changes (#4111)

* Since we only implement one time register to hold the value of
`time`(used in non-virtual mode) and `time + htimedelta`(used in virtual
mode), the value should be updated when virtual mode changes.
* Otherwise, when virtual mode changes and rtc clock tick does not
assert, the value in `time` register does not match the current virtual
mode.

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

show more ...


# 1e49aeed 25-Oct-2024 chengguanghui <[email protected]>

fix(CSR): fix dcsr to support stopcount & stoptime


# cb36ac0f 20-Sep-2024 Xuan Hu <[email protected]>

fix(CSR): Add legalization code for mstatus.MPP, mnstatus.MNPP and dcsr.PRV (#3577)


# 689f6b88 07-Aug-2024 sinceforYy <[email protected]>

csr: execute inst will raise EX_II when rm is reserved value.

* When 0 <= inst.rm <= 4, execute inst as usual.
* When inst.rm = 5/6, execute inst will raise EX_II.
* When inst.rm = 7, rm

csr: execute inst will raise EX_II when rm is reserved value.

* When 0 <= inst.rm <= 4, execute inst as usual.
* When inst.rm = 5/6, execute inst will raise EX_II.
* When inst.rm = 7, rm = frm.data. if frm.data > 4 will raise EX_II.

* Meanwhile, flush pipe when
* 1. wen frm CSR and wdata > 4
* 2. wen fcsr CSR and wdata(7, 5) > 4
* 3. wen frm/fcsr CSR and frm.rdata is reserved

show more ...


# dcaa6f06 01-Aug-2024 Xuan Hu <[email protected]>

CSR: initialize vstart to avoid X propagation at DecodeStage


# 5ae0e5de 26-Jul-2024 Ziyue Zhang <[email protected]>

vtype: init vtype's vill to 1 and other fields to 0


# 1dfefe3c 20-Jul-2024 Zhaoyang You <[email protected]>

NewCSR: write bit of [6:0] for vstart CSR when wdata >= VLEN (#3249)


# 499d09b3 16-Jul-2024 sinceforYy <[email protected]>

NewCSR: set legal init value to WARL Field


# c715e8fe 27-Jun-2024 Xuan Hu <[email protected]>

NewCSR: set vstart to zero when setting VS dirty


# d23963a8 24-Jun-2024 Xuan Hu <[email protected]>

tmp-NewCSR: fix connection of CSR vector bundles


# 79aaf6c2 05-Jun-2024 sinceforYy <[email protected]>

NewCSR: use rocketchip's CSR addr


# 94895e77 07-Jun-2024 Xuan Hu <[email protected]>

NewCSR: fix rdata when VS mode access VS CSRs by address of S mode


# 2c054816 04-Jun-2024 sinceforYy <[email protected]>

NewCSR: use rocketchip's CSR addr


# b51a1abd 04-Jun-2024 chengguanghui <[email protected]>

NewCSR: connected perfevent to newcsr


# 244b1012 30-May-2024 sinceforYy <[email protected]>

NewCSR: update time CSR

* Read time CSR in VS or VU mode return htimedelta + actual value of time
* Add stime, vstime output IO to saving adder


# 0b4c00ff 29-May-2024 Xuan Hu <[email protected]>

NewCSR: support Sstc extension

* Add `stimecmp` and `vstimecmp` CSR.
* Add `STIP` and `VSTIP` interrupt.
* Add `STCE` field in `menvcfg` and `henvcfg` to enable Sstc extension.


# 65ddf865 28-May-2024 Xuan Hu <[email protected]>

NewCSR: add `cycle` and `instret` support


# e628dd84 28-May-2024 Xuan Hu <[email protected]>

NewCSR: add time CSR support


# 01cdded8 22-Apr-2024 Xuan Hu <[email protected]>

NewCSR: fix unprivileged CSRs and permission check

* Add commit vstart
* Fix commit connection
* Fix permission check
* Fix mstatus.VS/FS initial with off
* Add fp/vec.off bundle to decode
* Flush w

NewCSR: fix unprivileged CSRs and permission check

* Add commit vstart
* Fix commit connection
* Fix permission check
* Fix mstatus.VS/FS initial with off
* Add fp/vec.off bundle to decode
* Flush when change vxrm
* Add more skip condition for mip and hip

show more ...


# 007f6122 14-Apr-2024 Xuan Hu <[email protected]>

NewCSR: add IMSIC


# e877d8bf 11-Apr-2024 Xuan Hu <[email protected]>

NewCSR: add fu wrapper


# 039cdc35 08-Mar-2024 Xuan Hu <[email protected]>

NewCSR: modulized implementation

NewCSR: add Hypervisor CSRs

NewCSR: optimize dump fields using chisel3.reflect.DataMirror

NewCSR: add VirtualSupervisor CSRs

NewCSR: refactor VirtualSupervisor an

NewCSR: modulized implementation

NewCSR: add Hypervisor CSRs

NewCSR: optimize dump fields using chisel3.reflect.DataMirror

NewCSR: add VirtualSupervisor CSRs

NewCSR: refactor VirtualSupervisor and Hypervisor CSRs

* Make sure ValidIO etc function return CSREnumType not EnumType
* TODO: AIA for vs

NewCSR: add MachineLevel CSRs

NewCSR: fix alias relationship between hip, hvip and vsip

NewCSR: add SupervisorLevel CSRs

show more ...