linux-user: Enable NPTL for OpenRISC
commit442a59c8ddc55f327ec0219d810fe4580177716a
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jul 2013 17:44:53 +0000 (16 18:44 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 22 Jul 2013 18:54:12 +0000 (22 21:54 +0300)
treef681ea014c519954adf038c0f950160df473df7e
parentdfeab06c98f7bc37f8ad8a6a2f8f677e5a57a55d
linux-user: Enable NPTL for OpenRISC

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.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Jia Liu <proljc@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
configure
linux-user/openrisc/target_cpu.h