summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2018-02-14 14:03:34 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2018-02-19 16:12:25 +0000
commit72f15d3b8926432bed4740403d85a76549abb8bb (patch)
tree5dafe2ab3fd4cdf41c57d190e1c17f3385fa85c0
parent3b25b7cc64035b181d139b90abb692f5eda935a5 (diff)
downloadgem5-72f15d3b8926432bed4740403d85a76549abb8bb.tar.xz
arch-arm: Semihosting not available in syscall emulation
Arm Semihosting is not available in syscall emulation since we don't have an Arm system in that scenario. Trying to use it in "se" mode will make getArmSystem assertion fail. Change-Id: I4cf49ae801ec6e6c93134ac6ae2a0f412040684c Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/8367 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
-rw-r--r--src/arch/arm/system.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/arm/system.cc b/src/arch/arm/system.cc
index caef6dc8f..a540a63c4 100644
--- a/src/arch/arm/system.cc
+++ b/src/arch/arm/system.cc
@@ -273,7 +273,7 @@ ArmSystem::haveLargeAsid64(ThreadContext *tc)
bool
ArmSystem::haveSemihosting(ThreadContext *tc)
{
- return getArmSystem(tc)->haveSemihosting();
+ return FullSystem && getArmSystem(tc)->haveSemihosting();
}
uint64_t