diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2018-04-18 16:41:32 -0400 |
---|---|---|
committer | Brandon Potter <Brandon.Potter@amd.com> | 2019-04-29 20:37:29 +0000 |
commit | 5ad8040a4b3215ec582015fee38c5312033c600a (patch) | |
tree | 923af8ae54d642ccdb06ec5104ecf8dc1c9fd4ed /src | |
parent | ae891622fa5ad2707c9c0551cddf7f0e2d9919b3 (diff) | |
download | gem5-5ad8040a4b3215ec582015fee38c5312033c600a.tar.xz |
sim-se: create Proc out files in out dir
Redirected output files from Process objects were being
created in the current directory instead of in the
output directory.
Change-Id: Ieb6ab5556fbcc811f4f24910da247d4dcdbc71bd
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/12122
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
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> |