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
This commit is contained in:
Nathan Binkert 2004-02-20 15:19:55 -05:00
parent ee8c8cbcd8
commit a51cec6669
2 changed files with 3 additions and 4 deletions

View file

@ -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];

View file

@ -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));
}