Re: [Qemu-devel] [RFC] [PATCH] linux-user: implement m68k atomic syscalls

2013-07-24 Thread Richard Henderson
On 07/23/2013 09:10 PM, riku.voi...@linaro.org wrote: > +#ifdef TARGET_NR_atomic_cmpxchg_32 > +case TARGET_NR_atomic_cmpxchg_32: > +{ > +/* should use start_exclusive from main.c */ > +abi_ulong mem_value; > +if (get_user_u32(mem_value, arg6)) > +ret = -T

[Qemu-devel] [RFC] [PATCH] linux-user: implement m68k atomic syscalls

2013-07-24 Thread riku . voipio
From: Riku Voipio 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 coldf