summaryrefslogtreecommitdiff
path: root/src/mem/ruby/recorder/CacheRecorder.hh
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-01-29 20:29:20 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-01-29 20:29:20 -0800
commit0f6535dba1e94d97118023adb6df811af58b752f (patch)
tree5fffc96bff9bcb55c1aa71b6e27b3c9ebf6c8329 /src/mem/ruby/recorder/CacheRecorder.hh
parent2c9ca672dfe4a204ebe21c73b344d2939c0e0eff (diff)
downloadgem5-0f6535dba1e94d97118023adb6df811af58b752f.tar.xz
ruby: Convered ruby tracing support usage of sequencer
Modified ruby's tracing support to no longer rely on the RubySystem map to convert a sequencer string name to a sequencer pointer. As a temporary solution, the code uses the sim_object find function. Eventually, we should develop a better fix.
Diffstat (limited to 'src/mem/ruby/recorder/CacheRecorder.hh')
-rw-r--r--src/mem/ruby/recorder/CacheRecorder.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mem/ruby/recorder/CacheRecorder.hh b/src/mem/ruby/recorder/CacheRecorder.hh
index 144e841b3..88cc5eaca 100644
--- a/src/mem/ruby/recorder/CacheRecorder.hh
+++ b/src/mem/ruby/recorder/CacheRecorder.hh
@@ -47,6 +47,7 @@
template <class TYPE> class PrioHeap;
class Address;
class TraceRecord;
+class Sequencer;
class CacheRecorder {
public:
@@ -57,7 +58,11 @@ public:
~CacheRecorder();
// Public Methods
- void addRecord(const string & sequencer_name, const Address& data_addr, const Address& pc_addr, RubyRequestType type, Time time);
+ void addRecord(Sequencer* sequencer,
+ const Address& data_addr,
+ const Address& pc_addr,
+ RubyRequestType type,
+ Time time);
int dumpRecords(string filename);
void print(ostream& out) const;