summaryrefslogtreecommitdiff
path: root/src/mem/ruby/recorder/CacheRecorder.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/ruby/recorder/CacheRecorder.hh')
-rw-r--r--src/mem/ruby/recorder/CacheRecorder.hh16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mem/ruby/recorder/CacheRecorder.hh b/src/mem/ruby/recorder/CacheRecorder.hh
index 88cc5eaca..2616f73ae 100644
--- a/src/mem/ruby/recorder/CacheRecorder.hh
+++ b/src/mem/ruby/recorder/CacheRecorder.hh
@@ -38,11 +38,13 @@
#ifndef CACHERECORDER_H
#define CACHERECORDER_H
-#include "mem/ruby/libruby_internal.hh"
+#include <iostream>
+#include <string>
+#include "mem/protocol/CacheRequestType.hh"
#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/libruby_internal.hh"
#include "mem/ruby/system/NodeID.hh"
-#include "mem/protocol/CacheRequestType.hh"
template <class TYPE> class PrioHeap;
class Address;
@@ -63,9 +65,9 @@ public:
const Address& pc_addr,
RubyRequestType type,
Time time);
- int dumpRecords(string filename);
+ int dumpRecords(std::string filename);
- void print(ostream& out) const;
+ void print(std::ostream& out) const;
private:
// Private Methods
@@ -78,16 +80,16 @@ private:
};
// Output operator declaration
-ostream& operator<<(ostream& out, const CacheRecorder& obj);
+std::ostream& operator<<(std::ostream& out, const CacheRecorder& obj);
// ******************* Definitions *******************
// Output operator definition
extern inline
-ostream& operator<<(ostream& out, const CacheRecorder& obj)
+std::ostream& operator<<(std::ostream& out, const CacheRecorder& obj)
{
obj.print(out);
- out << flush;
+ out << std::flush;
return out;
}