Commit 15efb4a 1 parent bcda9f1 commit 15efb4a Copy full SHA for 15efb4a
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
@@ -1207,7 +1208,7 @@ class LoadUnit(implicit p: Parameters) extends XSModule
1207
1208
// * ecc data error is slow to generate, so we will not use it until load stage 3
1208
1209
// * in load stage 3, an extra signal io.load_error will be used to
1209
1210
// * if pbmt =/= 0, mmio is up to pbmt; otherwise, it's up to pmp
1210
- val s2_tlb_hit = RegNext (! io.tlb.resp.bits.miss && io.tlb.resp.valid && s1_valid )
1211
+ val s2_tlb_hit = RegNext (s1_tlb_hit )
1211
1212
val s2_mmio = ! s2_prf &&
1212
1213
! s2_exception && ! s2_in.tlbMiss &&
1213
1214
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