Skip to content

Commit

Permalink
fix prefetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasquale Davide Schiavone authored and Pasquale Davide Schiavone committed Dec 18, 2017
1 parent 7078fa8 commit 5fb7e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv_prefetch_buffer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ module riscv_prefetch_buffer
hwlp_CS <= hwlp_NS;

if (addr_valid) begin
instr_addr_q <= hwloop_speculative ? hwloop_target_i : instr_addr_o;
instr_addr_q <= (hwloop_speculative & ~branch_i) ? hwloop_target_i : instr_addr_o;
end
end
end
Expand Down

0 comments on commit 5fb7e42

Please sign in to comment.