summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-02-20 15:19:55 -0500
committerNathan Binkert <binkertn@umich.edu>2004-02-20 15:19:55 -0500
commita51cec66694a550417dcf792c72cbecbd79f3da7 (patch)
tree896c29378fb774ed366c38c40a959f971f372bcd /base
parentee8c8cbcd89f70d50a770007c6bcaf428ac2f233 (diff)
downloadgem5-a51cec66694a550417dcf792c72cbecbd79f3da7.tar.xz
Make it so dump takes a void *
base/trace.cc: base/trace.hh: take a void * for the raw data --HG-- extra : convert_revision : fc336dc82b4d533c3a0f319977074f26342445ea
Diffstat (limited to 'base')
-rw-r--r--base/trace.cc3
-rw-r--r--base/trace.hh4
2 files changed, 3 insertions, 4 deletions
diff --git a/base/trace.cc b/base/trace.cc
index 156110376..cca58d669 100644
--- a/base/trace.cc
+++ b/base/trace.cc
@@ -208,8 +208,7 @@ PrintfRecord::dump(ostream &os)
-RawDataRecord::RawDataRecord(Tick _cycle,
- const uint8_t *_data, int _len)
+RawDataRecord::RawDataRecord(Tick _cycle, const void *_data, int _len)
: Record(_cycle), len(_len)
{
data = new uint8_t[len];
diff --git a/base/trace.hh b/base/trace.hh
index 9e5952765..e49d7aa61 100644
--- a/base/trace.hh
+++ b/base/trace.hh
@@ -108,7 +108,7 @@ namespace Trace {
int len;
public:
- RawDataRecord(Tick cycle, const uint8_t *_data, int _len);
+ RawDataRecord(Tick cycle, const void *_data, int _len);
virtual ~RawDataRecord();
virtual void dump(std::ostream &);
@@ -149,7 +149,7 @@ namespace Trace {
}
inline void
- rawDump(const uint8_t *data, int len)
+ rawDump(const void *data, int len)
{
theLog.append(new Trace::RawDataRecord(curTick, data, len));
}