From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrTjJ-00037i-Mp for qemu-devel@nongnu.org; Tue, 25 Jun 2013 09:56:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrTjD-000491-Ny for qemu-devel@nongnu.org; Tue, 25 Jun 2013 09:56:21 -0400 Received: from mail-qa0-x22a.google.com ([2607:f8b0:400d:c00::22a]:57305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrTjD-00048w-J2 for qemu-devel@nongnu.org; Tue, 25 Jun 2013 09:56:15 -0400 Received: by mail-qa0-f42.google.com with SMTP id hu16so638255qab.15 for ; Tue, 25 Jun 2013 06:56:15 -0700 (PDT) Sender: Richard Henderson Message-ID: <51C9A17A.2030706@twiddle.net> Date: Tue, 25 Jun 2013 06:56:10 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1372156544-31712-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1372156544-31712-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] linux-user: Move cpu_clone_regs() and cpu_set_tls() into linux-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Jia Liu , patches@linaro.org, Riku Voipio , Alexander Graf , qemu-devel@nongnu.org, Blue Swirl , "Edgar E. Iglesias" , Guan Xuetao , =?ISO-8859-1?Q?Andreas_F=E4rber?= , Aurelien Jarno On 06/25/2013 03:35 AM, Peter Maydell wrote: > (and maybe even actually get all targets > up to having NPTL enabled, since it's mostly just implementing > the two functions being moved here for x86, sparc, openrisc. There's far more to it than that for x86. You've got to add support for all of the locked arithmetic instructions. We currently have several hacks for atomic operations in linux-user, usually involving some escape into the cpu loop that pauses the other threads. This as opposed to assuming some atomic support on behalf of the host... It's a mess. r~