未验证 提交 e67f3281 编写于 作者: Y Yinan Xu 提交者: GitHub

Merge pull request #444 from RISCVERS/fix-mstatus-reset

backend,fu,CSR: clear mstatus.MPP upon reset
......@@ -236,7 +236,7 @@ class CSR extends FunctionUnit with HasCSRConst
val mimpid = RegInit(UInt(XLEN.W), 0.U) // provides a unique encoding of the version of the processor implementation
val mhartNo = hartId()
val mhartid = RegInit(UInt(XLEN.W), mhartNo.asUInt) // the hardware thread running the code
val mstatus = RegInit(UInt(XLEN.W), "h00001800".U) // another option: "h8000c0100".U
val mstatus = RegInit(UInt(XLEN.W), 0.U)
// mstatus Value Table
// | sd |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册