Skip to content

Commit

Permalink
cpu-o3: fix bug: ftq pc beyond fsq end
Browse files Browse the repository at this point in the history
Change-Id: Ide0a7eb0b0d3c31226f57e0a0d64e1d813de506c
  • Loading branch information
Lawrence-ID committed Dec 13, 2024
1 parent ba70d3b commit 3a97593
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cpu/pred/ftb/decoupled_bpred.cc
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,6 @@ DecoupledBPUWithFTB::tick()
dbpFtbStats.fsqFullCannotEnq++;
}

if (!receivedPred && numOverrideBubbles == 0 && sentPCHist) {
numOverrideBubbles = generateFinalPredAndCreateBubbles();
}
if (!squashing) {
DPRINTF(DecoupleBP, "DecoupledBPUWithFTB::tick()\n");
DPRINTF(Override, "DecoupledBPUWithFTB::tick()\n");
Expand Down Expand Up @@ -665,6 +662,10 @@ DecoupledBPUWithFTB::tick()
DPRINTF(Override, "Stream queue is full, don't request prediction\n");
}
squashing = false;

if (!receivedPred && numOverrideBubbles == 0 && sentPCHist) {
numOverrideBubbles = generateFinalPredAndCreateBubbles();
}
}

// ideal_tick() is copied from commit: e7294f1813c331dbce8bcfa4d5eb981f7c8440c5
Expand Down

0 comments on commit 3a97593

Please sign in to comment.