Trace the register that has been decoded rather than picking out the bits from the instruction.

Duh.
This commit is contained in:
jon
2020-04-15 14:08:36 +01:00
parent a0fb527ad7
commit c056d40a3a

View File

@@ -184,7 +184,7 @@ function Maybe#(RVFI_DII_Execution#(DataSz,DataSz)) genRVFI(ToReorderBuffer rot,
if (rot.dst matches tagged Valid .regWrite) begin
if (regWrite matches tagged Gpr .regNum) begin
data = rot.traceBundle.regWriteData;
rd = rot.orig_inst[11:7];
rd = regNum;
end
end
case (rot.ppc_vaddr_csrData) matches