From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nupvu-0003pJ-Mj for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:29:22 -0400 Received: from [140.186.70.92] (port=52712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nupvt-0003n8-6N for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:29:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nupvr-0002gK-UX for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:29:21 -0400 Received: from are.twiddle.net ([75.149.56.221]:48167) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nupvr-0002g4-O9 for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:29:19 -0400 Message-ID: <4BAB8F5E.2020508@twiddle.net> Date: Thu, 25 Mar 2010 09:29:18 -0700 From: Richard Henderson MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly. References: <20100325133920.GS16726@codesourcery.com> <4BAB853E.1070303@twiddle.net> <20100325160611.GU16726@codesourcery.com> In-Reply-To: <20100325160611.GU16726@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nathan Froyd Cc: qemu-devel@nongnu.org, aurelien@aurel32.net On 03/25/2010 09:06 AM, Nathan Froyd wrote: >> Mips doesn't even pretend to be atomic. > > It pretends just as much as ppc and arm. See translate.c:OP_ST_ATOMIC. No it doesn't. Look at HELPER_ST_ATOMIC: tmp = do_##ld_insn(arg2, mem_idx); \ if (tmp == env->llval) { \ do_##st_insn(arg2, arg1, mem_idx); \ return 1; \ > (The remaining cases are tricky things, like cross-process locks.) I > think--though Paul would remember better than I--that the stop-the-world > approach might have been taken due to a desire to continue compiling > with gcc < 4.1. I don't know how much of a desdirata that still is. Even that wouldn't be an issue if we move the cmpxchg into TCG. I'll put this at the end of the enhancement queue... r~