Get rid of outputStream... wasn't really being used

(except for warn()) and new -r/-e options make it
not worth fixing.
This commit is contained in:
Steve Reinhardt 2008-08-04 01:45:12 -04:00
parent ab6e522032
commit 58c63ea8b1
4 changed files with 0 additions and 16 deletions

View file

@ -129,6 +129,4 @@ __warn(const char *func, const char *file, int line, const char *fmt,
#endif #endif
ccprintf(cerr, format.c_str(), args); ccprintf(cerr, format.c_str(), args);
if (simout.isFile(*outputStream))
ccprintf(*outputStream, format.c_str(), args);
} }

View file

@ -52,7 +52,6 @@ inline void disableAllListeners() { ListenSocket::disableAll(); }
%include "sim/host.hh" %include "sim/host.hh"
void setOutputDir(const std::string &dir); void setOutputDir(const std::string &dir);
void setOutputFile(const std::string &file);
void SimStartup(); void SimStartup();
void doExitCleanup(); void doExitCleanup();
void disableAllListeners(); void disableAllListeners();

View file

@ -97,14 +97,6 @@ setOutputDir(const string &dir)
simout.setDirectory(dir); simout.setDirectory(dir);
} }
ostream *outputStream;
void
setOutputFile(const string &file)
{
outputStream = simout.find(file);
}
/** /**
* Queue of C++ callbacks to invoke on simulator exit. * Queue of C++ callbacks to invoke on simulator exit.
*/ */

View file

@ -68,11 +68,6 @@ extern Tick ps;
void setClockFrequency(Tick ticksPerSecond); void setClockFrequency(Tick ticksPerSecond);
/// Output stream for simulator messages (e.g., cprintf()). Also used
/// as default stream for tracing and DPRINTF() messages (unless
/// overridden with trace:file option).
extern std::ostream *outputStream;
void setOutputFile(const std::string &file);
void setOutputDir(const std::string &dir); void setOutputDir(const std::string &dir);
struct Callback; struct Callback;