diff options
| author | Hunter Laux | 2014-06-20 13:13:14 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2014-06-24 18:01:24 +0200 |
| commit | d535508793a8e9389379543ef8d506e50c10cf67 (patch) | |
| tree | c8ba8396f451f41d8364439e7027c5caa046c3a9 /linux-user/main.c | |
| parent | Increase maximum number of session of the internal TFTP server. (diff) | |
| download | qemu-d535508793a8e9389379543ef8d506e50c10cf67.tar.gz qemu-d535508793a8e9389379543ef8d506e50c10cf67.tar.xz qemu-d535508793a8e9389379543ef8d506e50c10cf67.zip | |
Add support for the arm breakpoint syscall
OABI arm used a software interrupt(0xef9f0001) for breakpoints.
Since 2005 gdb has used the break instruction(0xe7f001f0) for EABI.
Apparently Steel Bank Common Lisp still uses the swi instruction.
This is the kernel implementation:
http://lxr.free-electrons.com/source/arch/arm/kernel/traps.c#L598
Signed-off-by: Hunter Laux <hunterlaux@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user/main.c')
| -rw-r--r-- | linux-user/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index df1bb0e758..900a17fa33 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -806,6 +806,9 @@ void cpu_loop(CPUARMState *env) cpu_set_tls(env, env->regs[0]); env->regs[0] = 0; break; + case ARM_NR_breakpoint: + env->regs[15] -= env->thumb ? 2 : 4; + goto excp_debug; default: gemu_log("qemu: Unsupported ARM syscall: 0x%x\n", n); @@ -849,6 +852,7 @@ void cpu_loop(CPUARMState *env) } break; case EXCP_DEBUG: + excp_debug: { int sig; |
