Skip to content

关于香山处理器fence执行单元 #3661

Closed Answered by Lemover
ILoveStartFive asked this question in Q&A
Discussion options

You must be logged in to vote

香山的 Fence 类指令实现比较简单,使用状态机控制,刷新 StoreBuffer 和 MMU 中的缓存内容,再刷新流水线。可以直接看源码:https://github.com/OpenXiangShan/XiangShan/blob/master/src/main/scala/xiangshan/backend/fu/Fence.scala
Fence指令的其他复杂特性,还请阅读RISC-V的手册。

The Fence instructions implementation in XiangShan is relatively simple, utilizing a state machine to control to flush the cache of the StoreBuffer and MMU, and then to flush the cpu pipeline. You can read the source code at: XiangShan/Fence.scala
For other complex features of the Fence instruction, please refer to the RISC-V manual.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Lemover
Comment options

@ILoveStartFive
Comment options

@ILoveStartFive
Comment options

@Lemover
Comment options

@Lemover
Comment options

Answer selected by Lemover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants