From 19a6e31c9d2701ef648b70ddcfc3bf64cec8c37e Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 24 Oct 2016 16:26:56 +0100 Subject: target-arm: Implement new HLT trap for semihosting Version 2.0 of the semihosting specification introduces new trap instructions for AArch32: HLT 0xF000 for A32 and HLT 0x3C for T32. Implement these (in the same way we implement the existing HLT semihosting trap for A64). The old traps via SVC and BKPT are unaffected. Signed-off-by: Peter Maydell Message-id: 1476792973-18508-1-git-send-email-peter.maydell@linaro.org --- linux-user/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-user/main.c') diff --git a/linux-user/main.c b/linux-user/main.c index c6f2e20c09..54970bc4d9 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -806,6 +806,9 @@ void cpu_loop(CPUARMState *env) } } break; + case EXCP_SEMIHOST: + env->regs[0] = do_arm_semihosting(env); + break; case EXCP_INTERRUPT: /* just indicate that signals should be handled asap */ break; -- cgit 1.4.1