Commit 48f7f55 1 parent 7edcfc9 commit 48f7f55 Copy full SHA for 48f7f55
File tree 1 file changed +3
-2
lines changed
src/main/scala/xiangshan/mem/pipeline
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -918,7 +918,8 @@ class LoadUnit(implicit p: Parameters) extends XSModule
918
918
val s1_exception = ExceptionNO .selectByFu(s1_out.uop.exceptionVec, LduCfg ).asUInt.orR // af & pf exception were modified below.
919
919
val s1_tlb_miss = io.tlb.resp.bits.miss && io.tlb.resp.valid && s1_valid
920
920
val s1_tlb_fast_miss = io.tlb.resp.bits.fastMiss && io.tlb.resp.valid && s1_valid
921
- val s1_pbmt = Mux (! s1_tlb_miss, io.tlb.resp.bits.pbmt.head, 0 .U (Pbmt .width.W ))
921
+ val s1_tlb_hit = ! io.tlb.resp.bits.miss && io.tlb.resp.valid && s1_valid
922
+ val s1_pbmt = Mux (s1_tlb_hit, io.tlb.resp.bits.pbmt.head, 0 .U (Pbmt .width.W ))
922
923
val s1_nc = s1_in.nc
923
924
val s1_prf = s1_in.isPrefetch
924
925
val s1_hw_prf = s1_in.isHWPrefetch
@@ -1205,7 +1206,7 @@ class LoadUnit(implicit p: Parameters) extends XSModule
1205
1206
// * ecc data error is slow to generate, so we will not use it until load stage 3
1206
1207
// * in load stage 3, an extra signal io.load_error will be used to
1207
1208
// * if pbmt =/= 0, mmio is up to pbmt; otherwise, it's up to pmp
1208
- val s2_tlb_hit = RegNext (! io.tlb.resp.bits.miss && io.tlb.resp.valid && s1_valid )
1209
+ val s2_tlb_hit = RegNext (s1_tlb_hit )
1209
1210
val s2_mmio = ! s2_prf &&
1210
1211
! s2_exception && ! s2_in.tlbMiss &&
1211
1212
Mux (Pbmt .isUncache(s2_pbmt), s2_in.mmio, s2_tlb_hit && s2_pmp.mmio)
You can’t perform that action at this time.
0 commit comments