Support for stat counters from the tag controller.

The order of the events is very not tested; 50% chance of being correct.
This commit is contained in:
jon
2020-12-17 12:38:52 +00:00
parent 4131dcd073
commit bab989d6d2
5 changed files with 31 additions and 1 deletions

View File

@@ -1041,7 +1041,7 @@ endfunction
function x addPc(x cap, Bit#(12) inc) provisos (Add#(f, 12, c), CHERICap::CHERICap#(x, a, b, c, d, e)) = setAddrUnsafe(cap, getAddr(cap) + signExtend(inc));
`ifdef PERFORMANCE_MONITORING
typedef 112 No_Of_Evts;
typedef 128 No_Of_Evts;
typedef 8 Report_Width;
typedef 64 Counter_Width;
typedef 29 No_Of_Ctrs;