Skip to content

Commit bccc552

Browse files
authored
<bug-fix>: fix f3 mmio write back override bug (#1567)
1 parent 88ca983 commit bccc552

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/scala/xiangshan/frontend/IFU.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,10 @@ class NewIFU(implicit p: Parameters) extends XSModule
666666
checkFlushWb.bits.jalTarget := wb_check_result.fixedTarget(ParallelPriorityEncoder(VecInit(wb_pd.zip(wb_instr_valid).map{case (pd, v) => v && pd.isJal })))
667667
checkFlushWb.bits.instrRange := wb_instr_range.asTypeOf(Vec(PredictWidth, Bool()))
668668

669-
toFtq.pdWb := Mux(f3_req_is_mmio, mmioFlushWb, checkFlushWb)
669+
toFtq.pdWb := Mux(wb_valid, checkFlushWb, mmioFlushWb)
670670

671671
wb_redirect := checkFlushWb.bits.misOffset.valid && wb_valid
672672

673-
674673
/*write back flush type*/
675674
val checkFaultType = wb_check_result.faultType
676675
val checkJalFault = wb_valid && checkFaultType.map(_.isjalFault).reduce(_||_)

0 commit comments

Comments
 (0)