diff --git a/src/controller.sv b/src/controller.sv index 6e8a1dc2d22a908a59525af4498bdd2ef74598aa..ef40190d3b59c1f172b611358f2c6db9ba4d620d 100644 --- a/src/controller.sv +++ b/src/controller.sv @@ -97,17 +97,13 @@ module controller import ariane_pkg::*; ( flush_id_o = 1'b1; flush_ex_o = 1'b1; flush_icache_o = 1'b1; -// this is not needed in the case since we -// have a write-through cache in this case -`ifndef WT_DCACHE + // Force D$ flushing to avoid issues on the FPGA. flush_dcache = 1'b1; fence_active_d = 1'b1; -`endif + + flush_bp_o = 1'b1; end -// this is not needed in the case since we -// have a write-through cache in this case -`ifndef WT_DCACHE // wait for the acknowledge here if (flush_dcache_ack_i && fence_active_q) begin fence_active_d = 1'b0; @@ -115,7 +111,7 @@ module controller import ariane_pkg::*; ( end else if (fence_active_q) begin flush_dcache = 1'b1; end -`endif + // --------------------------------- // SFENCE.VMA // ---------------------------------