Drop check against whether the ROB row already has a trap

The only other thing setting this is enq, but RenameStage marks
already-trapping instuctions as Executed so they should never go to the
ALU.
This commit is contained in:
Jessica Clarke
2020-07-14 16:46:29 +01:00
parent f2d9c78824
commit 6356d5f8a1

View File

@@ -312,7 +312,7 @@ module mkReorderBufferRowEhr(ReorderBufferRowEhr#(aluExeNum, fpuMulDivExeNum)) p
// update PPC or csrData (vaddr is always useless for ALU results)
ppc_vaddr_csrData[pvc_finishAlu_port(i)] <= csrDataOrPPC;
if (cause matches tagged Valid .exp &&& !isValid(trap[trap_finishAlu_port(i)]))
if (cause matches tagged Valid .exp)
trap[trap_finishAlu_port(i)] <= Valid (CapException (exp));
`ifdef RVFI
//$display("%t : traceBundle = ", $time(), fshow(tb), " in Row_setExecuted_doFinishAlu for %x", pc);