Add support for the arm breakpoint syscall
authorHunter Laux <hunterlaux@gmail.com>
Fri, 20 Jun 2014 11:13:14 +0000 (04:13 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 24 Jun 2014 16:01:24 +0000 (20:01 +0400)
commitd535508793a8e9389379543ef8d506e50c10cf67
treec8ba8396f451f41d8364439e7027c5caa046c3a9
parent5f22b054f2594e231b042ada24d2fdfaa9c26d52
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>
linux-user/arm/syscall.h
linux-user/main.c