Brandon Potter has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/12122 )
Change subject: sim-se: create Proc out files in out dir
......................................................................
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 <[email protected]>
Maintainer: Brandon Potter <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/sim/fd_array.cc
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Brandon Potter: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/sim/fd_array.cc b/src/sim/fd_array.cc
index 0600e9f..3b0c587 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 @@
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>
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12122
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ieb6ab5556fbcc811f4f24910da247d4dcdbc71bd
Gerrit-Change-Number: 12122
Gerrit-PatchSet: 24
Gerrit-Owner: Brandon Potter <[email protected]>
Gerrit-Reviewer: Brandon Potter <[email protected]>
Gerrit-Reviewer: John Alsop <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-CC: Jason Lowe-Power <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev