Skip to content

Commit

Permalink
fix: hack FastCache component to update stats on every push
Browse files Browse the repository at this point in the history
  • Loading branch information
branylagaffe committed May 29, 2024
1 parent 8cdfe5f commit 401a81e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/FastCache/FastCacheImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class FLEXUS_COMPONENT(FastCache)

// Increment stat counter
(theStats->*stat_ptr)++;
theStats->update();

DBG_(Iface, Addr(aMessage.address())(<< "Done, reply: " << aMessage));
DBG_(Iface,
Expand Down Expand Up @@ -352,6 +353,7 @@ class FLEXUS_COMPONENT(FastCache)

// Increment counter
(theStats->*stat_ptr)++;
theStats->update();

snp_lookup = theCache->lookup(tagset);
DBG_(Iface,
Expand Down Expand Up @@ -475,4 +477,4 @@ FLEXUS_PORT_ARRAY_WIDTH(FastCache, SnoopOutI)
#define FLEXUS_END_COMPONENT FastCache

#define DBG_Reset
#include DBG_Control()
#include DBG_Control()

0 comments on commit 401a81e

Please sign in to comment.