Received: from eggs.gnu.org ([2001:4830:134:3::10]:53476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5epQ-00049Q-RR for qemu-devel@nongnu.org; Wed, 25 May 2016 15:50:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5epL-0003b2-Va for qemu-devel@nongnu.org; Wed, 25 May 2016 15:50:52 -0400 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:36390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5epL-0003ay-Ra for qemu-devel@nongnu.org; Wed, 25 May 2016 15:50:47 -0400 Received: by mail-qk0-x235.google.com with SMTP id x7so42842871qkd.3 for ; Wed, 25 May 2016 12:50:47 -0700 (PDT) Sender: Richard Henderson References: <20160524171856.1000-1-bobby.prani@gmail.com> <20160524171856.1000-3-bobby.prani@gmail.com> <8a9b6d4e-278a-08b5-d1fb-d66e28e8e3ac@twiddle.net> <87twhmc54i.fsf@linaro.org> From: Richard Henderson Message-ID: <362cbd97-dafd-4365-698b-c5ed93104e8c@twiddle.net> Date: Wed, 25 May 2016 12:50:44 -0700 MIME-Version: 1.0 In-Reply-To: <87twhmc54i.fsf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC PATCH 2/3] tcg: Add support for fence generation in x86 backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: Pranith Kumar , Peter Maydell , Sergey Fedorov , "open list:i386 target" On 05/25/2016 12:25 PM, Alex Bennée wrote: > That would solves the problem of converting the various backends > piecemeal - although obviously we should move to all backends having > "native" support ASAP. However by introducing expensive substitute > functions we will slow down the translations as each front end is > expanded to translate the target barrier ops. Obviously. We could in fact do that all up front if desired. It doesn't take long to look up the barrier instructions for each isa. > Should we make the emitting of the function call/TCGop conditional on > MTTCG being enabled? If we are running in round-robin mode there is no > need to issue any fence operations. Probably. But to keep the translators clean we should probably hide that within tcg_gen_fence(). r~