From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8wip-0005n2-4c for qemu-devel@nongnu.org; Fri, 03 Jun 2016 17:33:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8wik-0004AE-Tq for qemu-devel@nongnu.org; Fri, 03 Jun 2016 17:33:38 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:36783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8wij-0004AA-GP for qemu-devel@nongnu.org; Fri, 03 Jun 2016 17:33:34 -0400 Received: by mail-lf0-x241.google.com with SMTP id h68so9028093lfh.3 for ; Fri, 03 Jun 2016 14:33:33 -0700 (PDT) References: <20160531183928.29406-1-bobby.prani@gmail.com> <20160531183928.29406-2-bobby.prani@gmail.com> <57505F1A.3020808@gmail.com> <68c32d50-adc2-25b2-b136-2a486f6b3de7@twiddle.net> <5750995D.6030005@gmail.com> <8e9b8569-89a5-845a-a856-7f2fa4435659@twiddle.net> <5750A725.2050303@gmail.com> <8a253238-5718-10d4-a1b9-d9c0c890a457@twiddle.net> <5751DF2D.5040709@gmail.com> From: Sergey Fedorov Message-ID: <5751F7AA.40609@gmail.com> Date: Sat, 4 Jun 2016 00:33:30 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v2 PATCH 01/13] Introduce TCGOpcode for memory barrier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Pranith Kumar , Richard Henderson , =?UTF-8?Q?Alex_Benn=c3=a9e?= , "open list:All patches CC here" On 03/06/16 23:43, Peter Maydell wrote: > On 3 June 2016 at 20:49, Sergey Fedorov wrote: >> I'm not so sure about acq/rel flags. Is there any architecture which has >> explicit acq/rel barriers? I suppose acq/rel memory access instructions >> are always load-link and store-conditional and thus rely on exclusive >> memory monitor to support that "conditional" behaviour. > This doesn't sound right (at least not for ARM). You can have > load-acquire and store-release insns which aren't exclusives, > you can have exclusives which aren't acq/rel, and you can > have accesses which are both exclusives and acq/rel (and > just to complete the set, obviously there are accesses which > are neither). The exclusive semantics require the monitor, but > acq/rel is just an ordering constraint (sort of like an implicit > barrier, but not quite). Thanks for clarifying this, Peter. Regards, Sergey