mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
[v2] linux-user: implement m68k atomic syscalls
With nptl enabled, atomic_cmpxchg_32 and atomic_barrier system calls are needed. This patch enabled really dummy versions of the system calls, modeled after the m68k kernel code. With this patch I am able to execute m68k binaries with qemu linux-user (busybox compiled for coldfire). [v2] que an segfault instead of returning a EFAULT to keep in line with kernel code. Cc: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
parent
1308c464a8
commit
89aaf1a6ad
2 changed files with 34 additions and 0 deletions
|
@ -1521,3 +1521,9 @@
|
|||
#ifdef TARGET_NR_pipe2
|
||||
{ TARGET_NR_pipe2, "pipe2", NULL, NULL, NULL },
|
||||
#endif
|
||||
#ifdef TARGET_NR_atomic_cmpxchg_32
|
||||
{ TARGET_NR_atomic_cmpxchg_32, "atomic_cmpxchg_32", NULL, NULL, NULL },
|
||||
#endif
|
||||
#ifdef TARGET_NR_atomic_barrier
|
||||
{ TARGET_NR_atomic_barrier, "atomic_barrier", NULL, NULL, NULL },
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue