Received: from eggs.gnu.org ([2001:4830:134:3::10]:45128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUe0-0003N8-Be for qemu-devel@nongnu.org; Mon, 12 Sep 2016 13:03:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjUdw-0000jW-6L for qemu-devel@nongnu.org; Mon, 12 Sep 2016 13:03:43 -0400 Received: from mail-yw0-f182.google.com ([209.85.161.182]:36437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUdw-0000jL-1z for qemu-devel@nongnu.org; Mon, 12 Sep 2016 13:03:40 -0400 Received: by mail-yw0-f182.google.com with SMTP id u124so76568263ywg.3 for ; Mon, 12 Sep 2016 10:03:39 -0700 (PDT) Sender: Richard Henderson References: <1473328861-15792-1-git-send-email-leon.alrae@imgtec.com> <20160909084919.GA16694@hhmipssw201.hh.imgtec.org> From: Richard Henderson Message-ID: Date: Mon, 12 Sep 2016 10:02:36 -0700 MIME-Version: 1.0 In-Reply-To: <20160909084919.GA16694@hhmipssw201.hh.imgtec.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-mips: generate fences List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Leon Alrae Cc: qemu-devel@nongnu.org, aurelien@aurel32.net On 09/09/2016 01:49 AM, Leon Alrae wrote: > Actually the lightweight variants of SYNC exist also in earlier revisions of > MIPS architecture; therefore this can be tested for example on mips32r2. > > According to manuals the support is optional, and if given CPU doesn't > implement lightweight SYNCs (i.e. with stype != 0) then they are supposed > to behave in the same way as SYNC 0. (which also means I simplified that here > and always interpret the stype to take advantage of weaker ordering barriers). Noted. I've adjusted the patch in the tcg-next tree to always generate the weaker forms of sync. r~