Re: [Qemu-devel] [PATCH 6/8] linux-user: Enable NPTL for OpenRISC

2013-07-13 Thread Peter Maydell
On 13 July 2013 08:40, Jia Liu wrote: > Hi Peter, > > On Sat, Jul 13, 2013 at 4:12 AM, Peter Maydell > wrote: >> The OpenRISC kernel ignores CLONE_SETTLS in its copy_thread() >> implementation, so a cpu_set_tls() implementation is a no-op. >> cpu_clone_regs() was setting the syscall return value

Re: [Qemu-devel] [PATCH 6/8] linux-user: Enable NPTL for OpenRISC

2013-07-13 Thread Jia Liu
Hi Peter, On Sat, Jul 13, 2013 at 4:12 AM, Peter Maydell wrote: > The OpenRISC kernel ignores CLONE_SETTLS in its copy_thread() > implementation, so a cpu_set_tls() implementation is a no-op. > cpu_clone_regs() was setting the syscall return value in the > wrong register -- it is gpr[11], not gpr

[Qemu-devel] [PATCH 6/8] linux-user: Enable NPTL for OpenRISC

2013-07-12 Thread Peter Maydell
The OpenRISC kernel ignores CLONE_SETTLS in its copy_thread() implementation, so a cpu_set_tls() implementation is a no-op. cpu_clone_regs() was setting the syscall return value in the wrong register -- it is gpr[11], not gpr[2]. With these two things fixed, we can compile with NPTL enabled. Signe