From patchwork Wed Oct 13 18:22:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 515735 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp119794ime; Wed, 13 Oct 2021 11:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmIZMu/cmZvsGZ+sRFUfQJmgPwzvo3Jh/N9x96DKv3aVw7LkjHIaShYGrMlq+61QwjRqDS X-Received: by 2002:a0c:aa51:: with SMTP id e17mr573755qvb.50.1634149480829; Wed, 13 Oct 2021 11:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634149480; cv=none; d=google.com; s=arc-20160816; b=KnBqGvvu489oac+gVD4jMrYwNEL9/J1W8xxdmAqK0SFYQqphiBADhDP8PzDyGY5m2J t7YhrCSxGiLUn1qp0V4G9FBMh+EswwRNJBxt2i7xI+ioPDQDKGzYMFcdDhT/tHQQ7TAz sSZ6xg1x+O1LN3/grbQYPSPvHQOrpNugGmbJmlev1CzY//BKh4eEW19UAS9V6XHyPZL+ Qr2HfaOxtInWNWyEMM9M8rxRdT0VYKTxnxBmZTKpOLOkfZwXEBG5Jh2wX8YdanEGSW6z UsWe6yBHatIQPYjw7oeDcLszhQZHc34usDTwG6T8mQoL0nYj7sam1fiCIqF0/wYb0GaQ I1Lw== 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=GDciQRPakuuX9DSUk6eQQR3ypkG2xXbHMYU5/kDhb4Y=; b=oKYd0PzDO8WuwcWR6e14518sw5oGHSbrJIG8S0MbDgKNZuxtGnPr1tlPltMBO/sRIa N4fOOWfdYJun7OBmRBK9nc2HBYUViqhluG5da6PQ0YNlT6qk5hjFYDkMjNNNmDoSs5YR Wh2u9fr16odoasWS8wNCklM82PCsYgEqZG6nGtIOhRIxVuB5uZ5eJ96Cg8mc0QUt3iiU DikTKSxdgttrcneztPDdqK5TzWlKvHkktkMnJUke9hxh6uDlGCv++AbSbyAkUMDlqkZ1 81C+sNYq7VOd3NLSnlhIp3n6xeW14eYqANBm9DZiGUebx6N9azalqWbtutvXonckhBch tpVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S3VDWABC; 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 12si222622qtu.88.2021.10.13.11.24.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Oct 2021 11:24:40 -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=S3VDWABC; 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]:43572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maivg-0003jT-9Q for patch@linaro.org; Wed, 13 Oct 2021 14:24:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maits-0003ea-BQ for qemu-devel@nongnu.org; Wed, 13 Oct 2021 14:22:48 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:36510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maitp-0002yl-VL for qemu-devel@nongnu.org; Wed, 13 Oct 2021 14:22:48 -0400 Received: by mail-pg1-x52a.google.com with SMTP id 75so3155274pga.3 for ; Wed, 13 Oct 2021 11:22:45 -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=GDciQRPakuuX9DSUk6eQQR3ypkG2xXbHMYU5/kDhb4Y=; b=S3VDWABCajdzmRVm9tKJJpitfXWFI1zb9O8xRwXms7dyT80VYfEfduU+MQ44kBFfrp RaPqkCgX/e7IEmBQH/2nZVGN2VJlYwxuiRHKnso5rXb2B0k/IFwGzZmgvBaCCtLMiq23 s5q0O8G8qjHdXF1j3e6bsXrAcHMYoNf8ekskN0wCTEtJnMwKVGrZVRMZkDqbGfmFi5Rc 0QoT8TKAkMOj+SsN6l+OYkK7HTOWNyqbc+OO0A3MyVIxL5KXyD075J1HDc6tZllW+sWq /2EjuS6puZTr/JK6N8mn/ccZuISjm66tGMFXMrDkDCO7Dov6016tf3GGscReiriBoDhF 91+A== 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=GDciQRPakuuX9DSUk6eQQR3ypkG2xXbHMYU5/kDhb4Y=; b=DxiSmfEWbtzN8ud1iWvxVMfegehb/gpNnyb0imjpGGRloEyX7Pc6BDi+KzSeVtFxOo ZoITEVAzgdydpoTAWiVUiOGv90zVDDYoEpl2W+rdaL+xeipC5+l9Yhsl3Oxh3VUbczeJ sUYycw2OzYbR/nFZ4y/df6hInU7wbilkp8JfBo1TvQIeiNfvmTEvShFJODHWZsw/l54R TzqdQc90xOoFLLffXzUEgAdA3NpGV+yIu9Qtv7e5peL0hfYmo0SuxTLbX1qtbYxMpmc0 2vhVajpD5DXrZiJo3LvxtlY4+HwSf9/p99FrDGL95gypwA+9cgcaPelH+2cwhAgJkZzt 2eZw== X-Gm-Message-State: AOAM532VcWRe5sHKO/7qALUv3M7EBauQ8F4EkkmQ9Tfo8FAxJ99lX9LJ Q1O8UUmKNBiZ4mJMFrSwNAZbwR31ccbvSA== X-Received: by 2002:a62:3893:0:b0:44b:9369:5de5 with SMTP id f141-20020a623893000000b0044b93695de5mr927325pfa.40.1634149364306; Wed, 13 Oct 2021 11:22:44 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id z2sm177140pfe.210.2021.10.13.11.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 11:22:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 02/15] target/arm: Use MO_128 for 16 byte atomics Date: Wed, 13 Oct 2021 11:22:26 -0700 Message-Id: <20211013182239.991127-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211013182239.991127-1-richard.henderson@linaro.org> References: <20211013182239.991127-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52a.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=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-arm@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-arm@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/helper-a64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c index c5af779006..4cafd3c11a 100644 --- a/target/arm/helper-a64.c +++ b/target/arm/helper-a64.c @@ -560,7 +560,7 @@ uint64_t HELPER(paired_cmpxchg64_le_parallel)(CPUARMState *env, uint64_t addr, assert(HAVE_CMPXCHG128); mem_idx = cpu_mmu_index(env, false); - oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx); + oi = make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx); cmpv = int128_make128(env->exclusive_val, env->exclusive_high); newv = int128_make128(new_lo, new_hi); @@ -630,7 +630,7 @@ uint64_t HELPER(paired_cmpxchg64_be_parallel)(CPUARMState *env, uint64_t addr, assert(HAVE_CMPXCHG128); mem_idx = cpu_mmu_index(env, false); - oi = make_memop_idx(MO_BEQ | MO_ALIGN_16, mem_idx); + oi = make_memop_idx(MO_BE | MO_128 | MO_ALIGN, mem_idx); /* * High and low need to be switched here because this is not actually a @@ -656,7 +656,7 @@ void HELPER(casp_le_parallel)(CPUARMState *env, uint32_t rs, uint64_t addr, assert(HAVE_CMPXCHG128); mem_idx = cpu_mmu_index(env, false); - oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx); + oi = make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx); cmpv = int128_make128(env->xregs[rs], env->xregs[rs + 1]); newv = int128_make128(new_lo, new_hi); @@ -677,7 +677,7 @@ void HELPER(casp_be_parallel)(CPUARMState *env, uint32_t rs, uint64_t addr, assert(HAVE_CMPXCHG128); mem_idx = cpu_mmu_index(env, false); - oi = make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx); + oi = make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx); cmpv = int128_make128(env->xregs[rs + 1], env->xregs[rs]); newv = int128_make128(new_lo, new_hi);