mem-ruby: Add RubyHitMiss debug flags to print hit and miss information
Add RubyHitMiss debug flags to print hit and miss information. This can be used to test the replacement policies by the traffic generator. Change-Id: If9fe42c37e09be0534077fbf912d8699debd80fd Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21719 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
This commit is contained in:
committed by
Matt Sinclair
parent
f4f40f44f1
commit
928c5807db
@@ -68,11 +68,12 @@ DebugFlag('RubyTester')
|
||||
DebugFlag('RubyStats')
|
||||
DebugFlag('RubyResourceStalls')
|
||||
DebugFlag('RubyProtocol')
|
||||
DebugFlag('RubyHitMiss')
|
||||
|
||||
CompoundFlag('Ruby', [ 'RubyQueue', 'RubyNetwork', 'RubyTester',
|
||||
'RubyGenerated', 'RubySlicc', 'RubySystem', 'RubyCache',
|
||||
'RubyDma', 'RubyPort', 'RubySequencer', 'RubyCacheTrace',
|
||||
'RubyPrefetcher', 'RubyProtocol'])
|
||||
'RubyPrefetcher', 'RubyProtocol', 'RubyHitMiss'])
|
||||
|
||||
#
|
||||
# Link includes
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include "debug/LLSC.hh"
|
||||
#include "debug/MemoryAccess.hh"
|
||||
#include "debug/ProtocolTrace.hh"
|
||||
#include "debug/RubyHitMiss.hh"
|
||||
#include "debug/RubySequencer.hh"
|
||||
#include "debug/RubyStats.hh"
|
||||
#include "mem/packet.hh"
|
||||
@@ -630,6 +631,10 @@ Sequencer::hitCallback(SequencerRequest* srequest, DataBlock& data,
|
||||
llscLoadLinked(line_addr);
|
||||
}
|
||||
|
||||
DPRINTF(RubyHitMiss, "Cache %s at %#x\n",
|
||||
externalHit ? "miss" : "hit",
|
||||
printAddress(request_address));
|
||||
|
||||
// update the data unless it is a non-data-carrying flush
|
||||
if (RubySystem::getWarmupEnabled()) {
|
||||
data.setData(pkt);
|
||||
|
||||
Reference in New Issue
Block a user