Received: from eggs.gnu.org ([2001:4830:134:3::10]:44796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btNk7-0001vX-OM for qemu-devel@nongnu.org; Sun, 09 Oct 2016 19:42:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btNk6-0000L2-Pf for qemu-devel@nongnu.org; Sun, 09 Oct 2016 19:42:55 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:36177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btNk6-0000Kb-JK for qemu-devel@nongnu.org; Sun, 09 Oct 2016 19:42:54 -0400 Received: by mail-qt0-x242.google.com with SMTP id y38so2812350qta.3 for ; Sun, 09 Oct 2016 16:42:54 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sun, 9 Oct 2016 18:41:47 -0500 Message-Id: <1476056526-30740-17-git-send-email-rth@twiddle.net> In-Reply-To: <1476056526-30740-1-git-send-email-rth@twiddle.net> References: <1476056526-30740-1-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v5 16/35] tcg: Emit barriers with parallel_cpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index cdd61d6..bb2bfee 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -150,17 +150,7 @@ void tcg_gen_op6(TCGContext *ctx, TCGOpcode opc, TCGArg a1, TCGArg a2, void tcg_gen_mb(TCGBar mb_type) { - bool emit_barriers = true; - -#ifndef CONFIG_USER_ONLY - /* TODO: When MTTCG is available for system mode, we will check - * the following condition and enable emit_barriers - * (qemu_tcg_mttcg_enabled() && smp_cpus > 1) - */ - emit_barriers = false; -#endif - - if (emit_barriers) { + if (parallel_cpus) { tcg_gen_op1(&tcg_ctx, INDEX_op_mb, mb_type); } } -- 2.7.4