Skip to content

Commit

Permalink
Fix sw_predictor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Mar 20, 2023
1 parent deae9f7 commit 21d5334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/ifu/bpd/sw_predictor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SwBranchPredictorBank(implicit p: Parameters) extends BranchPredictorBank(
pred_harness.io.update_pc := io.update.bits.pc + (w << 1).U
pred_harness.io.update_hist := io.update.bits.ghist
pred_harness.io.update_taken := w.U === io.update.bits.cfi_idx.bits &&
io.update.bits.cfi_idx.valid
io.update.bits.cfi_idx.valid && io.update.bits.cfi_taken


io.resp.f2(w).taken := pred_harness.io.req_taken
Expand Down

0 comments on commit 21d5334

Please sign in to comment.