From nobody Wed Apr 16 13:40:03 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1634149512; cv=none; d=zohomail.com; s=zohoarc; b=HCsNi3WsK6VExR06rma5ZFJzjJQdQdbIF3xUBd6euNwgLTyyfpQ3THgCACJEH07u/I+vzKKsxQlER06UQqhlgV26gGbEpiz0HxgII5umpJX4RdCIxWULaIEqMScPj5CmoixbatJjQJH63SzDyEgO7hgAFphI7d6UVSafVzYcBhI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634149512; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GDciQRPakuuX9DSUk6eQQR3ypkG2xXbHMYU5/kDhb4Y=; b=ltd876Nyl5AMi1kfoScSHdjblREmQPLd+jteFHS+XUy6IbukImguzAdSakiOwk2eKJNV319luZ48H5PUPdoqaUCQohg3hjQUSI9pdJTA7FgGJov5Fj3KbcMH2lHP6h5X1Ukyyz3HTFFc5+0hz++Zyzs+1eAewZVB12KBI7PfE+w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1634149512096752.1457186651746; Wed, 13 Oct 2021 11:25:12 -0700 (PDT) Received: from localhost ([::1]:47570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maiwB-0006Tq-0B for importer@patchew.org; Wed, 13 Oct 2021 14:25:11 -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) 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) 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-Google-Smtp-Source: ABdhPJyeQL9gTcyzBBrG61djt/fuyXk3Ddx0N2jU9hWn1ZseyyNn5xuc8qJTK/+MJKjcX8QpLQhM8Q== 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) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1634149513904100005 Cc: qemu-arm@nongnu.org Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- target/arm/helper-a64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)(CPUARMSta= te *env, uint64_t addr, assert(HAVE_CMPXCHG128); =20 mem_idx =3D cpu_mmu_index(env, false); - oi =3D make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx); + oi =3D make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx); =20 cmpv =3D int128_make128(env->exclusive_val, env->exclusive_high); newv =3D int128_make128(new_lo, new_hi); @@ -630,7 +630,7 @@ uint64_t HELPER(paired_cmpxchg64_be_parallel)(CPUARMSta= te *env, uint64_t addr, assert(HAVE_CMPXCHG128); =20 mem_idx =3D cpu_mmu_index(env, false); - oi =3D make_memop_idx(MO_BEQ | MO_ALIGN_16, mem_idx); + oi =3D make_memop_idx(MO_BE | MO_128 | MO_ALIGN, mem_idx); =20 /* * 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); =20 mem_idx =3D cpu_mmu_index(env, false); - oi =3D make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx); + oi =3D make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx); =20 cmpv =3D int128_make128(env->xregs[rs], env->xregs[rs + 1]); newv =3D 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); =20 mem_idx =3D cpu_mmu_index(env, false); - oi =3D make_memop_idx(MO_LEQ | MO_ALIGN_16, mem_idx); + oi =3D make_memop_idx(MO_LE | MO_128 | MO_ALIGN, mem_idx); =20 cmpv =3D int128_make128(env->xregs[rs + 1], env->xregs[rs]); newv =3D int128_make128(new_lo, new_hi); --=20 2.25.1