We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff99568 commit 24dee3dCopy full SHA for 24dee3d
src/cpu/pred/btb/mbtb.cc
@@ -555,7 +555,9 @@ MBTB::updateBTBEntry(const BTBEntry& entry, const FetchStream &stream)
555
return;
556
} else {
557
// Not found anywhere, replace oldest in SRAM set
558
- replaceOldestInSRAMSet(sram_id, btb_idx, target_mru[btb_idx], ticked_entry);
+ if (stream.exeTaken && stream.exeBranchInfo.pc == ticked_entry.pc) {
559
+ replaceOldestInSRAMSet(sram_id, btb_idx, target_mru[btb_idx], ticked_entry);
560
+ }
561
}
562
563
0 commit comments