diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sim/fd_array.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sim/fd_array.cc b/src/sim/fd_array.cc index 0600e9ffe..3b0c5879a 100644 --- a/src/sim/fd_array.cc +++ b/src/sim/fd_array.cc @@ -43,6 +43,7 @@ #include <string> #include "base/logging.hh" +#include "base/output.hh" #include "params/Process.hh" #include "sim/fd_entry.hh" @@ -311,7 +312,8 @@ FDArray::openInputFile(std::string const& filename) const int FDArray::openOutputFile(std::string const& filename) const { - return openFile(filename, O_WRONLY | O_CREAT | O_TRUNC, 0664); + return openFile(simout.resolve(filename), + O_WRONLY | O_CREAT | O_TRUNC, 0664); } std::shared_ptr<FDEntry> |