From patchwork Mon Jul 22 17:29:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 813738 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp1976099wro; Mon, 22 Jul 2024 10:31:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVn47qeSQG5KGafED2+fb2K9bc8co5774i6LtVnGN+qQEou2p6k8PBUv4qNnwyCA6/xmMaftXdA/lWIgTVkKm8q X-Google-Smtp-Source: AGHT+IEtfdi7tHkS1oQvUcFjrxM6HQXbNJ3367WGYdP/6385ln/t/VjMxcISGHlKV9rgpnpjGVVN X-Received: by 2002:a05:620a:4710:b0:79d:6349:32de with SMTP id af79cd13be357-7a1a130c606mr1338350685a.7.1721669516643; Mon, 22 Jul 2024 10:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721669516; cv=none; d=google.com; s=arc-20160816; b=ybuRcT95C4DQUAXhcDlygJfeaItXS6brfslF2BkSCt2ki2Zk00wKj6NTuO8IkQrN7U AcMIbo9P+oeRqnpeIx3Am5AzWIWeheh7oA+1H59azumwFjEbLXk3/TVF8BUrh+zDlGMs n51La2FU73ioK+cLLO6AZRu8nXwkfowyzR/cHdW3+card2VcBoOlhcwCurx9bwDnQIpS 7aU5s6OEyGte+TTib/YnX6+QdGnc0HK9Uu++oyLQVmGtwo/brvP0h9pGE39n5QbMdu7w Ee75BSAj9gbXnizrcuc9mamRp3uVOQ24HecXlmKm32YGGAp+xviLAGM6sfGexXz1SSYp 6sRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Z0IYVJwzndaDSJ9XKQ8Yqnodig6ux9hujWPo87DcTHs=; fh=t8wxjzoGstbipXxzrZsUku1+wyBEZ4G/KadpZFUQrc4=; b=K1u7DbNQQ/sJAZc6MwuueH3hgWkI+KRV2f8zkSWhs6zMcvRDocpl8mPSX95/VJ0lkt WpLtwN57TnJkT5dfVzHvGZXw5Hj0bGUVcXw6Fykn0biHZpdqBGI4lqWv39bB6NA3+Zel RzPf0c3Tw2hVJsJbrYa400uKu6VoBGXdggHam4xldS1lzs9OhbKmPM7j6dcwOOgPRLkn AvNGEmkU1D93JD9Hec7WAmGoXcpW8XYbXT3AcKujr8DsL1GLDVjfjn+gqFA12jqBHrs6 SJ7sdGXZ9yICPufWNzrpLfuDM6SPMm7skCjZjo1Zc3XSbgi9BeUEmrX1MUkhQGekMNtV QXBg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uM/4phOg"; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a19904adf7si839756285a.375.2024.07.22.10.31.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2024 10:31:56 -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="uM/4phOg"; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVwrZ-0000GI-8w; Mon, 22 Jul 2024 13:30:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVwrX-00006j-1e for qemu-devel@nongnu.org; Mon, 22 Jul 2024 13:30:15 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sVwrP-0006Na-QE for qemu-devel@nongnu.org; Mon, 22 Jul 2024 13:30:13 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-36868fcb919so2104079f8f.2 for ; Mon, 22 Jul 2024 10:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721669399; x=1722274199; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Z0IYVJwzndaDSJ9XKQ8Yqnodig6ux9hujWPo87DcTHs=; b=uM/4phOgdWoLiHV2KvSojmayb7tYpzOvCsVUC46MZm8AeOugvwQuqoUp9O69iPMekZ PhBvkevDgKt9th/9OBqgL0e+HFG0KEgb3LdCUgMmo6Mtq+CpUVJn1Qhfl/HV9aWroSZe 0gI1MOlNGwcRIhbWjNXUt7uzng9i7ScAqzovGE+Mqk4rwdUn/pGmWsyTCOsW6DPK5F1J ZAF5WXpeHPUjuLIVCWsvRwqn2bXCrHwz9kN59BrH1CBWm/KPjZDY1DL5W6Dut87wOTB3 9BUE1WC9wgRFXDe9hoBt+JfleCmVqE6wrENVshZe3+P3oBrlz8Ne1ohjmhPEu5yb6b0G chJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721669399; x=1722274199; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z0IYVJwzndaDSJ9XKQ8Yqnodig6ux9hujWPo87DcTHs=; b=KwxYnVmBxcJgrE4Jwdr5hjvNyohlWEYB4p1YbOCXjZZqUWUOF6IRHIuknANd8fkUY4 tWQHjTOA1ToAfwQ6LzJjKWV29Ca83nxbtyYQc5TA/GQvxjMPS5N1KvdyuHqBPLbIl5Pt 9TgVu2J45l8QCfF3FkafC5Ua2De4LCtiplRn1Pr0luhC3rPV7h3KIHFSzaSeGzxv1Lds 27a2wEaMrCVf5RUjEwEW/1QhMVWFeuqIeycbTFeIeqEYcImKefM1X3UHVomWc+rn+X1U F6w6jx7/q9jmLsDke6b2UdXc7Crro/9drMhVMlq3tW3dPsJSd2REgnidTfTWhv+kOSSH HGQQ== X-Forwarded-Encrypted: i=1; AJvYcCUB+p4OkehMTO7j0PSR7PEBTFmft/Zpx5hbnd9zJqlFxoZ1MM6SNaTFvJIUqTMhRbyt2Rov0mbQrfi+pIS+hiaFvMb1bjU= X-Gm-Message-State: AOJu0YzxbsneGWeVDWJ6S32zqC07tiOSRMnwNsO1+tPddP9vhBVVcL5Q urOcZP+3dKZL2y510hbCJ0WUr+9ieNvZZQlKz69hBu4/5SF/Owm0+7U6Zhy/jd4= X-Received: by 2002:a5d:6dcd:0:b0:367:98e6:362b with SMTP id ffacd0b85a97d-369dee57a0fmr369138f8f.42.1721669399308; Mon, 22 Jul 2024 10:29:59 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d68fa493sm138035665e9.10.2024.07.22.10.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 10:29:58 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org Subject: [PATCH 0/4] target/arm: Various minor SME bugfixes Date: Mon, 22 Jul 2024 18:29:53 +0100 Message-Id: <20240722172957.1041231-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patchset fixes a handful of minor bugs in our SME implementation: one spotted by Coverity, one raised as a Gitlab issue, and a couple that I just noticed in passing while I was working with the code. thanks -- PMM Peter Maydell (4): target/arm: Don't assert for 128-bit tile accesses when SVL is 128 target/arm: Fix UMOPA/UMOPS of 16-bit values target/arm: Avoid shifts by -1 in tszimm_shr() and tszimm_shl() target/arm: Ignore SMCR_EL2.LEN and SVCR_EL2.LEN if EL2 is not enabled target/arm/helper.c | 2 +- target/arm/tcg/sme_helper.c | 8 ++++---- target/arm/tcg/translate-sme.c | 10 +++++++++- target/arm/tcg/translate-sve.c | 18 ++++++++++++++++-- 4 files changed, 30 insertions(+), 8 deletions(-) Reviewed-by: Richard Henderson