fix(fu): 修复sc地址前递bug
This commit is contained in:
parent
59db6ed7cd
commit
3b06ee4f55
|
@ -80,7 +80,7 @@ class Fu(implicit val cpuConfig: CpuConfig) extends Module {
|
|||
|
||||
val mem_addr = Seq.tabulate(cpuConfig.commitNum)(i =>
|
||||
Mux(
|
||||
LSUOpType.isAMO(io.inst(i).info.op) || LSUOpType.isLR(io.inst(i).info.op),
|
||||
LSUOpType.isAtom(io.inst(i).info.op),
|
||||
io.inst(i).src_info.src1_data,
|
||||
io.inst(i).src_info.src1_data + io.inst(i).info.imm
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue