提交 36bda89a 编写于 作者: G Guokai Chen 提交者: Lingrui98

cache: fix cache instruction csr X state

上级 612ec933
......@@ -154,7 +154,7 @@ class CSRCacheOpDecoder(decoder_name: String, id: Int)(implicit p: Parameters) e
val data_transfer_cnt = RegInit(0.U(log2Up(maxDataRowSupport).W))
// Translate CSR write to cache op
val translated_cache_req = Reg(new CacheCtrlReqInfo)
val translated_cache_req = RegInit(0.U.asTypeOf(new CacheCtrlReqInfo))
println("Cache op decoder (" + decoder_name + "):")
println(" Id " + id)
// CacheInsRegisterList.map{case (name, attribute) => {
......@@ -298,4 +298,4 @@ class CSRCacheErrorDecoder(implicit p: Parameters) extends CacheCtrlModule {
print_cache_error_flag(decoded_cache_error.opType.atom, "atom")
printf("It should not happen in normal execution flow\n")
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册