Skip to content

Commit

Permalink
Fixed prev_is_half
Browse files Browse the repository at this point in the history
prev_is_half could be set in a configuration without RVC
  • Loading branch information
pentin-as authored and jerryz123 committed Feb 27, 2019
1 parent c3858e9 commit 3fa27cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/ifu/fetch-control-unit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ class FetchControlUnit(fetch_width: Int)(implicit p: Parameters) extends BoomMod
{
val last_idx = Mux(inLastChunk(f3_fetch_bundle.pc) && icIsBanked.B,
(fetchWidth/2-1).U, (fetchWidth-1).U)
prev_is_half := (
!(f3_valid_mask(last_idx-1.U) && f3_fetch_bundle.insts(last_idx-1.U)(1,0) === 3.U)
prev_is_half := (usingCompressed.B
&& !(f3_valid_mask(last_idx-1.U) && f3_fetch_bundle.insts(last_idx-1.U)(1,0) === 3.U)
&& !f3_kill_mask(last_idx)
&& f3_btb_mask(last_idx)
&& f3_bpd_mask(last_idx)
Expand Down

0 comments on commit 3fa27cf

Please sign in to comment.