From patchwork Thu Jul 29 00:46:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 488638 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp1710750jas; Wed, 28 Jul 2021 18:06:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2nAOv35So8K/u1SkBtRBIITM0OGuRD7oim4gM3XcZccX7b1yTbasCyrg0dejPySQI4MB/ X-Received: by 2002:ab0:5a0e:: with SMTP id l14mr2774521uad.88.1627520789655; Wed, 28 Jul 2021 18:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627520789; cv=none; d=google.com; s=arc-20160816; b=OAm0rGoMx7E52x/CtAArspddKnA3PiA6DB0MOqI2rTQ4anWKmUT4F2YYueiy6vf+lW CNPW91o2HCYzc8DcG79San/sTHPEGo/FesH4UY+mAbseghUQ6R+MS8I+1WJ4jvml/LTD ndZy850MoLeDRnX+lVAu15OsiEUy8NkMkz6aU+Ul+lhi50wGnHpIMlR2/8RmEEaUklEM cLowIS60DlkHlYVxeJkMo4eJhYB0sDr7Kth/8jQfCl9pwJpm8stKFvHGVBXAGEIM6NjN Efcu/uYa7pjgYwGCZDHE+cin4tJEY+zSOguZsRCpys71vVAeff5qr1AhGEyIx9LSuhSF LyZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=XT0R3qxdD5eZBJLk1lojYkK8JN65pbr+dOyaZNR/6oQ=; b=h2u/BVThxXaUi6oQCFog6IZtdtCEoF8grtgYH8F4rNxp/sWv5ujXkomHRJ05LUMVuw YNGSGkYCvDnDrIzO43BnyV4Jlby84D4TGCpSxGd18MkK/5bEUBWTa0s/gnEvGo7j4i9m HKbQM+HB9e5ALGXeWSO7q+7uYfB52S8IlFz+Ql2k2sqs6IcJ3Bztx5weNm1x9WWcKrso 8Fo/Ap8PtD2PKB/x4YDgmW249QbZOfwFbIWslFjdfd2dBXgx+03OZct5B6nh0m7CuomZ f73fazK76VOUHTSgcvjYvpkShE8Hpqb59MTAWUQQ2lU1ASeLx3bINXdvAIrs98Q6f0Vv zQ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T34DP9v4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z7si861760uaq.67.2021.07.28.18.06.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jul 2021 18:06:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T34DP9v4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8uVJ-000247-0T for patch@linaro.org; Wed, 28 Jul 2021 21:06:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8uCt-0004o2-Pk for qemu-devel@nongnu.org; Wed, 28 Jul 2021 20:47:27 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:41582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8uCs-0002kw-27 for qemu-devel@nongnu.org; Wed, 28 Jul 2021 20:47:27 -0400 Received: by mail-pl1-x62f.google.com with SMTP id z3so3538066plg.8 for ; Wed, 28 Jul 2021 17:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XT0R3qxdD5eZBJLk1lojYkK8JN65pbr+dOyaZNR/6oQ=; b=T34DP9v4G84dsM0YnA3l82zYlkL7TXZ5Uy/W2sz+q9juOzIfh3T0Dhit4iqUxH0cXq tc0ci2KqORfZU5PFSda56P5aR5OusCUSGwmz9ryZ0diG+7j9QV6WwZWHNLu+wucynuW8 XCTkjEQGn1wEmy3ZzrXPsBNC/QdeFWH8XdVs7maBHqGkST99CtHbFKU14Q4bmd0Ul9gt BgEx6UUUjbpbKAXkjebRf+cmBb3Obfoy+i3JdBElDyEKdJ58AaC2NyJEuCYVnKlNEKFY XQnfoVDhCGxXRxhBF2+e1KkQwPhPeQq86Pjk8wYkMPm32iIYdnGoMp6yUVbveTFtjXgi 6G2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XT0R3qxdD5eZBJLk1lojYkK8JN65pbr+dOyaZNR/6oQ=; b=pRXwxdYuTDy2V3dWMq80b1oeIfGciZV1Y/O/OxA3r8SPrt3xNW/ISUdfdy9DDhHGgf hXgtKHIS9BPGDpPPD3dJI8rODl/hNwhTZwfsg4G7c+2zEcMfcER09HThyd70c6vK4qAF OOy6f0hCso9yfh52YaQX7rBKYpWLlwCvyxLpbsfs2zQ1O5h9FctP9myO7CqqKUCyN0dq nmAiQ2SslaOpQwixiw8kqtKsF0Be8TgK8tdrmGSPVeE3j3KpjqYluelVC2i36YglBF+1 20xTS+JSGlaF5NvN3HQ3vczcsDuIQDO8K9U2wQd2UUm9CR8r3MIjVJOADn1EAtpijmkZ Asvg== X-Gm-Message-State: AOAM53289ZqSkWiRdLjfYpRFTWfPGj+5stUWYqjUWd2sRnmVAxSX2HnP TH2tTeX37l3Y94jS+CHtXgDG9fFTJoxUog== X-Received: by 2002:a17:902:fe12:b029:12b:e52f:3ace with SMTP id g18-20020a170902fe12b029012be52f3acemr2143901plj.38.1627519644767; Wed, 28 Jul 2021 17:47:24 -0700 (PDT) Received: from cloudburst.home (2603-800c-3202-ffa7-dcaa-9e71-a2b2-2604.res6.spectrum.com. [2603:800c:3202:ffa7:dcaa:9e71:a2b2:2604]) by smtp.gmail.com with ESMTPSA id t205sm1305005pfc.32.2021.07.28.17.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 17:47:24 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-6.2 29/43] target/ppc: Use MO_128 for 16 byte atomics Date: Wed, 28 Jul 2021 14:46:33 -1000 Message-Id: <20210729004647.282017-30-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210729004647.282017-1-richard.henderson@linaro.org> References: <20210729004647.282017-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: qemu-ppc@nongnu.org Signed-off-by: Richard Henderson --- target/ppc/translate.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 171b216e17..540efa858f 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -3461,10 +3461,12 @@ static void gen_std(DisasContext *ctx) if (HAVE_ATOMIC128) { TCGv_i32 oi = tcg_temp_new_i32(); if (ctx->le_mode) { - tcg_gen_movi_i32(oi, make_memop_idx(MO_LEQ, ctx->mem_idx)); + tcg_gen_movi_i32(oi, make_memop_idx(MO_LE | MO_128, + ctx->mem_idx)); gen_helper_stq_le_parallel(cpu_env, EA, lo, hi, oi); } else { - tcg_gen_movi_i32(oi, make_memop_idx(MO_BEQ, ctx->mem_idx)); + tcg_gen_movi_i32(oi, make_memop_idx(MO_BE | MO_128, + ctx->mem_idx)); gen_helper_stq_be_parallel(cpu_env, EA, lo, hi, oi); } tcg_temp_free_i32(oi); @@ -4066,11 +4068,11 @@ static void gen_lqarx(DisasContext *ctx) if (HAVE_ATOMIC128) { TCGv_i32 oi = tcg_temp_new_i32(); if (ctx->le_mode) { - tcg_gen_movi_i32(oi, make_memop_idx(MO_LEQ | MO_ALIGN_16, + tcg_gen_movi_i32(oi, make_memop_idx(MO_LE | MO_128 | MO_ALIGN, ctx->mem_idx)); gen_helper_lq_le_parallel(lo, cpu_env, EA, oi); } else { - tcg_gen_movi_i32(oi, make_memop_idx(MO_BEQ | MO_ALIGN_16, + tcg_gen_movi_i32(oi, make_memop_idx(MO_BE | MO_128 | MO_ALIGN, ctx->mem_idx)); gen_helper_lq_be_parallel(lo, cpu_env, EA, oi); } @@ -4121,7 +4123,7 @@ static void gen_stqcx_(DisasContext *ctx) if (tb_cflags(ctx->base.tb) & CF_PARALLEL) { if (HAVE_CMPXCHG128) { - TCGv_i32 oi = tcg_const_i32(DEF_MEMOP(MO_Q) | MO_ALIGN_16); + TCGv_i32 oi = tcg_const_i32(DEF_MEMOP(MO_128) | MO_ALIGN); if (ctx->le_mode) { gen_helper_stqcx_le_parallel(cpu_crf[0], cpu_env, EA, lo, hi, oi);