Fixed computation of load hazard statistics

(instructions were wrongly put in if(!D_stall) conditional)
This commit is contained in:
Bruno Levy
2022-09-16 10:33:39 +02:00
parent 2e9f7027aa
commit 0d49dee78b

View File

@@ -856,16 +856,17 @@ module Processor (
end
`endif
end
if(riscv_disasm_isLoad(MW_instr)) begin
nbLoad <= nbLoad + 1;
end
if(riscv_disasm_isStore(MW_instr)) begin
nbStore <= nbStore + 1;
end
end
if(riscv_disasm_isLoad(MW_instr)) begin
nbLoad <= nbLoad + 1;
end
if(riscv_disasm_isStore(MW_instr)) begin
nbStore <= nbStore + 1;
end
if(dataHazard) begin
nbLoadHazard <= nbLoadHazard + 1;
end
if(dataHazard) begin
nbLoadHazard <= nbLoadHazard + 1;
end
end