# Node ID 98f8322edfdb27541087f37c3110caca294cf392 # Parent 1099829ad5e9a5161f1517abf782a8aa7c50ef8a diff --git a/src/sim/process.cc b/src/sim/process.cc --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -53,6 +53,7 @@ #include "base/loader/object_file.hh" #include "base/loader/symtab.hh" #include "base/intmath.hh" +#include "base/output.hh" #include "base/statistics.hh" #include "config/the_isa.hh" #include "cpu/thread_context.hh" @@ -123,7 +124,8 @@ static int openOutputFile(const string &filename) { - return openFile(filename, O_WRONLY | O_CREAT | O_TRUNC, 0664); + return openFile(simout.resolve(filename), + O_WRONLY | O_CREAT | O_TRUNC, 0664); } Process::Process(ProcessParams * params)