From a51cec66694a550417dcf792c72cbecbd79f3da7 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 20 Feb 2004 15:19:55 -0500 Subject: [PATCH] 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 --- base/trace.cc | 3 +-- base/trace.hh | 4 ++-- 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)); }