There was an error while loading. Please reload this page.
1 parent 237a850 commit 6eb6d4bCopy full SHA for 6eb6d4b
1 file changed
src/cpu/pred/btb/decoupled_bpred.cc
@@ -218,15 +218,12 @@ DecoupledBPUWithBTB::shouldGenerateSecondFromUBTB(
218
return false;
219
}
220
221
- // Guard against history pollution: no conditional branch is allowed
222
- // before the terminating taken branch in the second block.
+ // Guard against history pollution: second block should not contain any
+ // conditional branch when second-direction prediction is disabled.
223
for (const auto &entry : ubtbPred.btbEntries) {
224
if (!entry.valid) {
225
continue;
226
227
- if (entry.pc == takenEntry.pc) {
228
- break;
229
- }
230
if (entry.isCond) {
231
232
0 commit comments