Add counter for LL writebacks (in the ST_MISS field).

This commit is contained in:
jon
2021-04-12 16:20:14 +01:00
parent 53549e0dbc
commit 86afb7e68e
2 changed files with 6 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ typedef struct {
Bit#(8) evt_LD_MISS;
Bit#(8) evt_LD_MISS_LAT;
Bit#(8) evt_ST;
Bit#(8) evt_ST_MISS; // Unimplemented
Bit#(8) evt_ST_MISS;
Bit#(8) evt_ST_MISS_LAT; // Unimplemented
Bit#(8) evt_AMO;
Bit#(8) evt_AMO_MISS;

View File

@@ -642,6 +642,11 @@ endfunction
toMQ.enq(msg);
// don't deq info, do ld next time
doLdAfterReplace <= True;
`ifdef PERFORMANCE_MONITORING
EventsCache events = unpack (0);
events.evt_ST_MISS = 1;
perf_events[0] <= events;
`endif
if (verbose)
$display("%t LL %m sendToM: rep then ld: rep: ", $time, fshow(msg));
end