Fixed a Tandem-Verification issue (report MIP change due to interrupts).

CSR MIP can change due to external/timer interrupts.  These non-instruction-related
changes were not being reported to the Tandem Verifier.
This commit is contained in:
rsnikhil
2020-03-03 18:34:00 -05:00
parent ac6043ce2d
commit 40b55d2c32
22 changed files with 35332 additions and 34109 deletions

View File

@@ -90,6 +90,7 @@ interface CsrFile;
Bool init_for_way0,
Bit #(5) old_fflags,
Data old_mstatus);
method Data getMIP;
`endif
// The WARL transform performed during CSRRx writes to a CSR
@@ -898,6 +899,10 @@ module mkCsrFile #(Data hartid)(CsrFile);
return tuple2 (new_fflags, new_mstatus);
endmethod
method Data getMIP;
return mip_csr;
endmethod
`endif
method Data warl_xform (CSR csr, Data x);