From patchwork Wed Oct 13 02:45:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 515693 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp6086205ime; Tue, 12 Oct 2021 20:00:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDMdXA3uZ+Gk/dm4HlsA3qJChHm/SwM9JSO63VeQGEd1S7r2PPOZvFj79VR54DT0eeC1IX X-Received: by 2002:a05:6902:124a:: with SMTP id t10mr33300017ybu.73.1634094028504; Tue, 12 Oct 2021 20:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634094028; cv=none; d=google.com; s=arc-20160816; b=g2iNTRmxv4BR3+g3eH62Skn8w0cHiHCOU9qdGz+/G3e5flFC/TI/DVUTrl+OxX+SRb 0eP8eTrp4PKhAG44e15YGitYoMLkfqzYxl3K/WUiR7HYbeXekNbV4sl5ee7PULtA2x6C EUJO5xSrF39Yf8JNxMT+lLIYoDSFZ/E4hvRGIan0548ne4Zf9VRqAuTgO7qeW0CLgOLk w3CjOtp/t+D3Sl47ZmCHbPhp5a75v/qoxdJNoJ3ha2t42L87Dzl+rla8st5kKGAi443u mxVov0E9S+EduKeY4wQ/weLfupU1fLpaw+PTyh76/DTAb4tTEy45fm4v1YK7few0N3Zw gSiw== 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=m31KIJw/lcLJxFk5HRMhG0LaXmCEuUD4FjCNknqYFfc=; b=MAKQ9ZtkXiYNOHLBVs+z4ih6movfic7AkWuwU1NpomziKp43ncRoDwodGMMacaw7EI 9X05PUTSzd6dhYL0C40QQaNKXrj3j/cr7UsMVTzzdn25fC3/sEz4wzx/n7cWPoARL8Q1 bBXXehs8tL6zZkthY5PHT0ot6ikDVAPel5B/NomOdSOzt09K8rfE857nxr6gSnZUNcDP if5DEPaQk3efr3JNH8Ai5+LeQZwiWZRh7xVwK+8cYzJqmynGbKK0buqI14XKUZY0YqyM D+BZdRFNFI5qM1UotglFB0Ze+WScCKACCmkArNUwx8GalNqbfNz9UjgEynHVgVmuNXlQ c8Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tS5QHOBN; 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 n83si16794866ybb.152.2021.10.12.20.00.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Oct 2021 20:00:28 -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=tS5QHOBN; 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]:58878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maUVH-0001xt-Tg for patch@linaro.org; Tue, 12 Oct 2021 23:00:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maUHp-0004oO-Mk for qemu-devel@nongnu.org; Tue, 12 Oct 2021 22:46:35 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:42535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maUHn-0004yY-AY for qemu-devel@nongnu.org; Tue, 12 Oct 2021 22:46:33 -0400 Received: by mail-pj1-x1034.google.com with SMTP id nn3-20020a17090b38c300b001a03bb6c4ebso1141950pjb.1 for ; Tue, 12 Oct 2021 19:46:30 -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=m31KIJw/lcLJxFk5HRMhG0LaXmCEuUD4FjCNknqYFfc=; b=tS5QHOBNSkAimxxJGS5sMxLbdlNcZlUqg80HUD3mfrp7jUWYywYXd9ja3vJ4WudfuK b0EbacRvKKoxVzvR4OircVEPhMCzuX4JYWl/FjcUsuElS5H0f6xWE26KOzeowi1EHPjQ dmriqybJ9PATd3mLgoromYY0ptoSLoz8EjT3MGvofIR5sdn1wsx4cwnu7JCSN6UKJM0n cep7i4yyM9D/8So+9KOFM1tuMSsOgY0SHZvAgdUIl+pqeQ34N+uWN4GCqRMsygTzEI+V gtuDREhA9liLtdWSzjH2X7lqsd1wf+wAWEg89qNjrZco6PzwjDAZNHQTbIL5AnubODBa nm8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m31KIJw/lcLJxFk5HRMhG0LaXmCEuUD4FjCNknqYFfc=; b=7wJxSIX0+p7vs9bjX8/qb04j3WDyz3mmRxMz1GoQiG47i+YzrT58ELWaXzptXwTq8z ZHQq4/AWYzygVbpEE3alOWtrCiGLHxjaKbaGqpej/5xhoW4DdwI8tnmaUDxvuncfV46b ISYvY904cM9f8CbXlXbcHccbN8JiT7Fx699l0AgFykc9rHMQC1hawpNlZWsR2cdOJ7kD mfs3FvJOkziNKs4B9GvP/y93uaFYQQ36d8d+2MyWPjvpnwGGnN7m1xO8k6PWfDyh34ir DPyBdN/ysNOg8mgu7vP0DvTGOqnWRUad/Fsz/Qv7/2408HmLgwmQ9wT6p9Vk9i1TC7Fh Hkpg== X-Gm-Message-State: AOAM530GvhjiOSjNjL1xq6VlkUZcyK9/iUiuDwf91JmkDfWWAq2vDYcG qwqN8uO0nUz+b60DC6rkdTq5RZhNe5FQvQ== X-Received: by 2002:a17:90a:7d0a:: with SMTP id g10mr10473974pjl.73.1634093189051; Tue, 12 Oct 2021 19:46:29 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id qe17sm4855014pjb.39.2021.10.12.19.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 19:46:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 19/48] target/ppc: Use MO_128 for 16 byte atomics Date: Tue, 12 Oct 2021 19:45:38 -0700 Message-Id: <20211013024607.731881-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211013024607.731881-1-richard.henderson@linaro.org> References: <20211013024607.731881-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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=ham 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, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: qemu-ppc@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/ppc/translate.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/target/ppc/translate.c b/target/ppc/translate.c index b985e9e55b..9ca78ee156 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -3462,10 +3462,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); @@ -4067,11 +4069,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); } @@ -4122,7 +4124,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);