File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -251,15 +251,16 @@ DecoupledBPUWithBTB::generateFinalPredAndCreateBubbles()
251251
252252 // update ubtb/abtb using final S3 prediction
253253 if (predsOfEachStage[numStages - 1 ].btbEntries .size () > 0 ) {
254- ubtb->updateUsingS3Pred (predsOfEachStage[numStages - 1 ]);
255- auto it = fetchStreamQueue.find (fsqId-1 );
256- if (it != fetchStreamQueue.end ()) {
254+ if (ubtb->isEnabled ()) {
255+ ubtb->updateUsingS3Pred (predsOfEachStage[numStages - 1 ]);
256+ }
257+ auto it = fetchStreamQueue.find (fsqId - 1 );
258+ if (it != fetchStreamQueue.end () && abtb->isEnabled ()) {
257259 auto previous_block_startpc = it->second .startPC ;
258260 abtb->updateUsingS3Pred (predsOfEachStage[numStages - 1 ], previous_block_startpc);
259- } else {
261+ } else if (abtb-> isEnabled ()) {
260262 abtb->updateUsingS3Pred (predsOfEachStage[numStages - 1 ], 0 );
261263 }
262-
263264 }
264265
265266 // 4. Record override bubbles and update statistics
You can’t perform that action at this time.
0 commit comments