diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2005-02-17 12:14:04 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2005-02-17 12:14:04 -0500 |
commit | 45ef238e3f54bd7e2b602def187085bd0b99aab5 (patch) | |
tree | ea4057df1dac0768ebf36201468af632cdefedf1 /cpu/base_cpu.cc | |
parent | b8d65408c810ba490243fc32c7d5e6817c32c70b (diff) | |
parent | cfe6ed7c484b62d07bae23c528f0e2e568cf0d65 (diff) | |
download | gem5-45ef238e3f54bd7e2b602def187085bd0b99aab5.tar.xz |
Merge zizzer:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/.automount/zazzer/z/rdreslin/m5bk/timing_L1
--HG--
extra : convert_revision : 88afcacc41f5b0fae0ed1ac1821b7ca88c407e85
Diffstat (limited to 'cpu/base_cpu.cc')
-rw-r--r-- | cpu/base_cpu.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cpu/base_cpu.cc b/cpu/base_cpu.cc index 4325bfc17..59804c7d5 100644 --- a/cpu/base_cpu.cc +++ b/cpu/base_cpu.cc @@ -26,13 +26,14 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <iostream> #include <string> #include <sstream> -#include <iostream> #include "base/cprintf.hh" #include "base/loader/symtab.hh" #include "base/misc.hh" +#include "base/output.hh" #include "cpu/base_cpu.hh" #include "cpu/exec_context.hh" #include "cpu/sampling_cpu/sampling_cpu.hh" @@ -133,8 +134,7 @@ BaseCPU::BaseCPU(const string &_name, int _number_of_threads, bool _def_reg, functionTracingEnabled = false; if (_function_trace) { - std::string filename = csprintf("ftrace.%s", name()); - functionTraceStream = makeOutputStream(filename); + functionTraceStream = simout.find(csprintf("ftrace.%s", name())); currentFunctionStart = currentFunctionEnd = 0; functionEntryTick = _function_trace_start; @@ -158,11 +158,8 @@ BaseCPU::enableFunctionTrace() BaseCPU::~BaseCPU() { - if (functionTracingEnabled) - closeOutputStream(functionTraceStream); } - void BaseCPU::init() { |