summaryrefslogtreecommitdiff
path: root/src/arch/arm/semihosting.hh
diff options
context:
space:
mode:
authorAdrian Herrera <adrian.herrera@arm.com>2019-11-15 10:55:36 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2020-01-06 18:54:41 +0000
commit4936474c2cb47528deaeb1b0e8ebca1ffb5b8426 (patch)
treeb39efdff26ef2c72a5480f8dafd049e774c79d77 /src/arch/arm/semihosting.hh
parentca7d52ebc081300885953199a5a64a5b926422c7 (diff)
downloadgem5-4936474c2cb47528deaeb1b0e8ebca1ffb5b8426.tar.xz
arch-arm: Semihosting, specify files root dir
This patch adds an option to "ArmSemihosting" which allows for specifying an optional search path for host files. Previously, behaviour was fixed to search in the directory from where the gem5 binary was run from. Change-Id: I57b932b38d022f132af78857104633d7bfdd1442 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23903 Reviewed-by: Ciro Santilli <ciro.santilli@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/arm/semihosting.hh')
-rw-r--r--src/arch/arm/semihosting.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/arm/semihosting.hh b/src/arch/arm/semihosting.hh
index a9c11933f..2ae31827e 100644
--- a/src/arch/arm/semihosting.hh
+++ b/src/arch/arm/semihosting.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 ARM Limited
+ * Copyright (c) 2018, 2019 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -243,6 +243,7 @@ class ArmSemihosting : public SimObject
FILE *file;
};
+ std::string filesRootDir;
std::vector<std::unique_ptr<FileBase>> files;
FILE *stdin;
FILE *stdout;