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 <>
Reviewed-by: Andreas Sandberg <>
Maintainer: Andreas Sandberg <>
diff --git a/src/arch/arm/ b/src/arch/arm/
index caef6dc..a540a63 100644
--- a/src/arch/arm/
+++ b/src/arch/arm/
@@ -273,7 +273,7 @@
 ArmSystem::haveSemihosting(ThreadContext *tc)
-    return getArmSystem(tc)->haveSemihosting();
+    return FullSystem && getArmSystem(tc)->haveSemihosting();