From patchwork Tue Jul 9 13:45:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 811437 Delivered-To: patch@linaro.org Received: by 2002:adf:ee12:0:b0:367:895a:4699 with SMTP id y18csp297474wrn; Tue, 9 Jul 2024 06:46:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUDFIboBFrTK+z56TFrTxpxEyc2VopSfhXWTRnIXbSQqhEC2XxgizW7MR0T9DlqP1VRcJM+2uVe+nB2Ro+94WJ8 X-Google-Smtp-Source: AGHT+IHNBDkaaWjqEG3hhUne1665PbxMDpl3vPY+yjRWBFFM+sG0LDkTLx/I6FTNEqF7ocUzogRu X-Received: by 2002:a05:622a:2ca:b0:446:6282:b903 with SMTP id d75a77b69052e-447fa9087f5mr30555161cf.25.1720532797034; Tue, 09 Jul 2024 06:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720532796; cv=none; d=google.com; s=arc-20160816; b=YH9l5d9Ltu4iJ6vIPQsdlNK5mJs6nvtdxwFCtpX43LXwd7BeANSqkqSjycoUFBrAlr ftkEzuIh9tQJ02Wj3KSXYNuTXwvjVRyyc8GNT/YMCnfvTkc7013GGwpmVexfCaQkk3cF N5EC+SePFvOiDeWy89bUqf4JxoL1PSmN/5RVGhjqtB2KTFelx/p+AbnGNapkLq3eOwPK BjlmHuq8cZ4t17kJPHT/KOiyVOkyYlDGHEJqbhEXA17Kpahn0gH9AlyAtWF/uyViRT3z Cn6+BDGUcH/7Fk4aeNqHyERZv3MYpoOhIhzln8unRwW/sIlf/W4yB6ptghAU3X1O73CX UHdw== 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:to:from:dkim-signature; bh=q9AlG6+FXP1n91wl1O/VJALhCvFdDSzdm0zLyKo33M8=; fh=aIiGSz+HW8zsY/dnv6793V9aUIRBjqMNPa1qe+G5ZaU=; b=KswZT1Kb1JQG4cC8E/NznIEw1axkqSisxFg6vUtXasZd8hbWS7oRqq+aFSklap0gsa YO/pPCfHhPBHXCWtwTZsvmovUbFnhSoiFBDpy4u+G9OOYIR6jJ2jL3toimk1ER3twZTx w0ggfksN6amq852ciA8+z/lDd2vGExJebbLk/1eYJyoYU95c6eXBGEkFDVVGB6AzV3b9 Oo11zHKevjjTYZOWaWb++3fZWAhyv1wg+MBLIPscngkO1bwi6PjcdxmREjyLuFkvY1lu tPKHSA16d5H+IMzZ/cC+TLHXMbJyait3uqIdXwxChLhK+qZj5KuowULhqwkRNviE1AXU m0XA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FL95AWD2; 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 af79cd13be357-79f19011635si236543585a.79.2024.07.09.06.46.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jul 2024 06:46:36 -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=FL95AWD2; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRB9t-0001kc-1r; Tue, 09 Jul 2024 09:45:29 -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 1sRB9m-0001gb-V3 for qemu-devel@nongnu.org; Tue, 09 Jul 2024 09:45:24 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRB9Z-0002IO-4B for qemu-devel@nongnu.org; Tue, 09 Jul 2024 09:45:20 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4266f344091so9551425e9.0 for ; Tue, 09 Jul 2024 06:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720532706; x=1721137506; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=q9AlG6+FXP1n91wl1O/VJALhCvFdDSzdm0zLyKo33M8=; b=FL95AWD2wYVuyQVLlGMm8l1cHPhAZ+r33Z1svLZV7Qrx0sgMAKPqWoUg5MFYrJ2zGh gkQ1rNjy1Nao3j6RHMmaiEL0YHSLqWwg0xzkJYiMSh7SGQ0gJX2N6+u0CxRgUh03AZSb CUxJfVXhPZTtI0nrSWnyvK8UTth4hRjO7uAZn8sXBa2vgur1WRfz1Bt4jIE+nRrfxkKt erjfpoFtMx3RmCEs+Nt+LRErQmfnbQygSQFfjmw2QC1XYT5ttejEJY7aOe5gv4zX6CpZ NuBFfGhowk0aiU8K+IgVMQ2lO0FME1avgtz4Ms+6eeR61MOJAMfQY1fbyk++R+3Uw8+V AcMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720532706; x=1721137506; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=q9AlG6+FXP1n91wl1O/VJALhCvFdDSzdm0zLyKo33M8=; b=Lk/QR0E0pKAxRpbOo9M9dsNhvxibp9YjezKVD0teuXY42sJPuO98aR3/JlROJ4FdDF 3StRTGzfvScyHyhVDK72U14Xbn0AflD8YXnOJeWggDtkbWcenuoRMMsCv0+kRvzfW+vc JULz3rMZVLb9qQohgjAP3SIjSIejVZCg87IlKwDz+7KEBm6hV08RJrSe1oLeYXcS57nB GBOCDUXBi/1rWQtio1h5BaIMA8RLkf8ksYMlReJXdLYiQ3U2pktWP9leWqBtOAsIYQOe zfY2Pv2D+uL3LDmiZWGCW8LP18Zom16Sq89m+uqscOPjAmdZ2b7Bdacb7fvfKU2eNaQl jY1w== X-Forwarded-Encrypted: i=1; AJvYcCUOLbKzLeTYXVq6qKhsWcAieYWET5NyX3ImnC2y8hcOBB9+58P9kZouz6X+bE7CbTN2mPFBYeeDZhvqNacs4WE/dd1nu68= X-Gm-Message-State: AOJu0YzhqbDEsw8At3HXYi3b19aIALLmYysWlT7+It0DABA0XeWJVP9g +F8o+aqFAw/qttsl8zjejCQ9qPO2mdBhF0eSIK7TERuoo30Qe+LurliGD5oep+iQKorzOuo/m8L S8WU= X-Received: by 2002:a05:600c:2e14:b0:426:6573:7058 with SMTP id 5b1f17b1804b1-426707cf7damr16443825e9.11.1720532705803; Tue, 09 Jul 2024 06:45:05 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1f22acsm210426605e9.24.2024.07.09.06.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 06:45:05 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 0/2] target/arm: two LDAPR/STLR fixes Date: Tue, 9 Jul 2024 14:45:02 +0100 Message-Id: <20240709134504.3500007-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::330; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x330.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 Patch 1 here fixes https://gitlab.com/qemu-project/qemu/-/issues/2419 which is a bug in the LDAPR/STLR-immediate insns that I introduced when I did the decodetree conversion: the immediate field should be signed, not unsigned. Patch 2 is an unrelated bug that I happened to notice when I was looking at the code: the LDAPR-register form incorrectly uses the stricter check_atomic_align() rather than check_ordered_align() (a bug that's been present since we added the FEAT_LSE2 support). thanks -- PMM Peter Maydell (2): target/arm: Fix handling of LDAPR/STLR with negative offset target/arm: LDAPR should honour SCTLR_ELx.nAA target/arm/tcg/a64.decode | 2 +- target/arm/tcg/translate-a64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)