From nobody Sat Feb 7 03:41:05 2026 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=1683905690; cv=none; d=zohomail.com; s=zohoarc; b=NE/SlMR8q5jXA9Q4O6i349rZF+eXW8w90Ps8I5f+dB1DOce6kd9rgeLrVWFHyDtoj0L7hbGNIA3yrcVfpf0TMwn6VAFNRRyHw+WjLycTuuvVgQwrebC3kJdhU3UCCR3g0gYVY04qt+jDnjd3w1y2Jh2iSRagC8XQYwvhtpXMpb8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905690; h=Content-Type:Content-Transfer-Encoding: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=1wWqh8IT42QINOpOQyrk9a9lOGocpzOir9ypVgBKs+U=; b=RHMkBRsqI1sVqjj6mpOYDAEbdm5gtapXwvDKEgRja75puYlEuwS9E6YVotmF1yXW2XQ1Ei2m/cBbTpG7oWi8W1L6ZPB+BkgQ4DTtWi+4GEm7ZPIO17waattzCvImWvdjAkgEVQ6ArDt2acbO/6h8KiGWRcHNgYCpFgpXOaHd1mE= 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 1683905690426181.85230486222486; Fri, 12 May 2023 08:34:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmw-0003Ht-Np; Fri, 12 May 2023 11:34:34 -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 1pxUmq-0003GX-Mv for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:28 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmp-000607-87 for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:28 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f315735514so326651445e9.1 for ; Fri, 12 May 2023 08:34:26 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905666; x=1686497666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1wWqh8IT42QINOpOQyrk9a9lOGocpzOir9ypVgBKs+U=; b=f56DXCmQ5D7WZq7GDUhGKpbsbBqnBQCh1HTfi5cvsT9eq0pT4IoF1O03laUL6AMvDv bPNzglitzdiseu0AbQ3cQr2oiEfFXTzS2KWmiNCIdNybO427DkV6hWzMoMoKkgC9Dt7y nNG2lhd3iB8UpK+B/GB0eYzIo+0S20jIb9F1xyU+go8s5yt7yEs5Akf54HayVogT8l1+ +cQV2HQFQJd63ZllkFN5gpFPCOFqZunS2aU7MW1HqvpyQyrGbrFOxXJ8d0/fZ2g4hyOP QQyH33QMWAVCxySF4z8IfiUJ0fQpCNrCdyGug4n0NzjnbYdIX11SsOdzXccHucVI8DPd xo9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905666; x=1686497666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1wWqh8IT42QINOpOQyrk9a9lOGocpzOir9ypVgBKs+U=; b=CgKegz4OaqhJEv/DCF50IS65I2wqbVeuOvuNKWHi8TbUl4kQ29F5+Zc+gurewsQdkD p3jymXAfOxz+XrPAL8DIGyqoUGIetmhV029b14aTwAQFXjyuNBsV+oRCar+Ttw5oJeEM kzTrJlJGqroHFrB8v/WdbU0k2QbK68F4P1Uzf7b9DG0BuWv7WFk3L1yoWxYRRUySL/Qy 5qQPbRkFKefGguNo5sUNyLoziTCvZpgNcLsrsAd8omsixGedyyIOZB6FYflxOEe/3Uzv /o87m/vmUEMo7XiXf4Oa1JP7X6b6CJmWwGaE3aG6LBRjnimwzJb8E5PQcH9UoKMUY4Sp yMGA== X-Gm-Message-State: AC+VfDyNHP2x0vcEjaKqlR6AlCru77S44hOX6dsa5xDMWV6hfPcorj39 LAxB9tsl8zsj9kuon2fa1W5H5D88fN0DUnSO5d8= X-Google-Smtp-Source: ACHHUZ4wnZhNQi3yerNPr/bYDDngGiTwi7tlNuhJoTWpKTUCAfkIbAZ5oab5g12ehW23HZFQDOz/sA== X-Received: by 2002:a5d:4ac1:0:b0:307:869c:99ce with SMTP id y1-20020a5d4ac1000000b00307869c99cemr15784776wrs.21.1683905665702; Fri, 12 May 2023 08:34:25 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 01/12] target/arm: Move translate-a32.h, arm_ldst.h, sve_ldst_internal.h to tcg/ Date: Fri, 12 May 2023 16:34:12 +0100 Message-Id: <20230512153423.3704893-2-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@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=2a00:1450:4864:20::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905691628100001 From: Richard Henderson These files got missed when populating tcg/. Because they are included with "", no change to the users required. Signed-off-by: Richard Henderson Reviewed-by: Fabiano Rosas Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20230504110412.1892411-2-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/{ =3D> tcg}/arm_ldst.h | 0 target/arm/{ =3D> tcg}/sve_ldst_internal.h | 0 target/arm/{ =3D> tcg}/translate-a32.h | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename target/arm/{ =3D> tcg}/arm_ldst.h (100%) rename target/arm/{ =3D> tcg}/sve_ldst_internal.h (100%) rename target/arm/{ =3D> tcg}/translate-a32.h (100%) diff --git a/target/arm/arm_ldst.h b/target/arm/tcg/arm_ldst.h similarity index 100% rename from target/arm/arm_ldst.h rename to target/arm/tcg/arm_ldst.h diff --git a/target/arm/sve_ldst_internal.h b/target/arm/tcg/sve_ldst_inter= nal.h similarity index 100% rename from target/arm/sve_ldst_internal.h rename to target/arm/tcg/sve_ldst_internal.h diff --git a/target/arm/translate-a32.h b/target/arm/tcg/translate-a32.h similarity index 100% rename from target/arm/translate-a32.h rename to target/arm/tcg/translate-a32.h --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905830; cv=none; d=zohomail.com; s=zohoarc; b=d+cqUqhvp8SwRpYK7e4tF24YF09BCFzPRNDSZSTDFNldA9dTblnm64YWjkTCkdJhCjJJTyjaxeNWt/p7Tmu1jZRiATJgRBkjGjcjt/G3bc0mklmXd2I4CS8crha5BsA/glhJDUpCTZDJApl7v9BArdGsVzlwdzpvbqd8UzFEzC4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905830; h=Content-Type:Content-Transfer-Encoding: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=3kxMyAH7DEu9p7Eb72s1jRjc73fovhzyjF2BxfQDUZY=; b=jEuTmsDBN8MImI6tBwyJyUuWXfHYbvXWw+1bYRIfXs0/vI0M1MMKejBNq5jAr2tFB/LDa+Ivvu+A9XVSyg67ip4YL4yFz7dFrwM/Yp8QGd9a14SFrYcY+fqaio92K0vhlXsRHE7CKWLuLqRHBuB3GnLHwNC+IxIZEdI2odVIth0= 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 1683905830340880.1778865555804; Fri, 12 May 2023 08:37:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmx-0003JG-EK; Fri, 12 May 2023 11:34:35 -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 1pxUmr-0003Gj-GT for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:29 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmp-000609-OU for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:29 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f475366514so26006345e9.2 for ; Fri, 12 May 2023 08:34:27 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905666; x=1686497666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3kxMyAH7DEu9p7Eb72s1jRjc73fovhzyjF2BxfQDUZY=; b=fTSw3C4Ht9XJyF93hxmbmlHZkCr3sK5FbVww9cDypT17FbAG6vYHJAC3agAOeahj1J yA+CHODmGEQjKeHWsTW2oHFxzoEZzpTb49gMfSYJZINu0g5JwZO62hzGJmh1t51+thc6 tC7DkONdzI4M1IDX2Xo8QwOr7NP+bQR6KT2Xf3MU3/m1nNpnIyeTaGBp6gJYvB2Ldllo SuROXKGkpsO7JpEvPgOsUj91iD4GjbLMe/VU1h8uSCnrM5wEYZfULmZg1Zw2LgHIR4aJ TbSSV0Spa0WOiFaQqYiKD+Xk10YkhS3rVSBg5E4sce9QHve+1uXv8Rg2IM+uT+fuOyUe rUCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905666; x=1686497666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3kxMyAH7DEu9p7Eb72s1jRjc73fovhzyjF2BxfQDUZY=; b=fV01+82Mp+3RB0b0bJWJJEgjLk9KlwGvzld26zUcYV2efIT3fnDUV90KYrg4HuVRCd vFft3JJOJFOhz/h7WxQl0uIm88ZvgVXLrzZCYwMHyC4ebzTYKDSjnLrnfuu7zRpismwU MNCntC4OUdiZor4MTBk/IvfXtgsXr1Y+AFZ8IYYr4BtC/VfPhW/6b6DUzMZuVTLHH7xh 7BKHZ528oEasQ9Z5g9oSaY6Pt+46QZR/e1BryPHmaZ/4Mub8fCv1vALfTfCDuHjle8lP jPJ0UqnjnDfM2TZFKcIURrst7oFP//YV1oXhGnLBUog8FObh6OSkuJtRiYHP1H4byG/M 0JmA== X-Gm-Message-State: AC+VfDy4E6UCfgR3WqnMJY+H9MtdAl1IohR3xBMf5whBdUodBrsn7qQl XSJO0/B9hAFTEPQsVNjNIUFWWeYaJ+UE04imlQ0= X-Google-Smtp-Source: ACHHUZ4Bz/9ic4BvQZZ4lOnLHoc98vyeXkLWtYgkyhKxM/DBTpkmJk1G95bcoFCd1NccgRO2FFXq+g== X-Received: by 2002:a1c:7308:0:b0:3ef:6819:b2ad with SMTP id d8-20020a1c7308000000b003ef6819b2admr17513769wmb.37.1683905666295; Fri, 12 May 2023 08:34:26 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 02/12] target/arm: Move helper-{a64,mve,sme,sve}.h to tcg/ Date: Fri, 12 May 2023 16:34:13 +0100 Message-Id: <20230512153423.3704893-3-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@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=2a00:1450:4864:20::329; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x329.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905832312100007 From: Richard Henderson While we cannot move the main "helper.h" out of target/arm/, due to usage by generic code, we can move the sub-includes. Signed-off-by: Richard Henderson Reviewed-by: Fabiano Rosas Message-id: 20230504110412.1892411-3-richard.henderson@linaro.org Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Peter Maydell --- target/arm/helper.h | 8 ++++---- target/arm/{ =3D> tcg}/helper-a64.h | 0 target/arm/{ =3D> tcg}/helper-mve.h | 0 target/arm/{ =3D> tcg}/helper-sme.h | 0 target/arm/{ =3D> tcg}/helper-sve.h | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename target/arm/{ =3D> tcg}/helper-a64.h (100%) rename target/arm/{ =3D> tcg}/helper-mve.h (100%) rename target/arm/{ =3D> tcg}/helper-sme.h (100%) rename target/arm/{ =3D> tcg}/helper-sve.h (100%) diff --git a/target/arm/helper.h b/target/arm/helper.h index 018b00ea75b..3335c2b10b9 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -1039,9 +1039,9 @@ DEF_HELPER_FLAGS_5(gvec_uclamp_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32) =20 #ifdef TARGET_AARCH64 -#include "helper-a64.h" -#include "helper-sve.h" -#include "helper-sme.h" +#include "tcg/helper-a64.h" +#include "tcg/helper-sve.h" +#include "tcg/helper-sme.h" #endif =20 -#include "helper-mve.h" +#include "tcg/helper-mve.h" diff --git a/target/arm/helper-a64.h b/target/arm/tcg/helper-a64.h similarity index 100% rename from target/arm/helper-a64.h rename to target/arm/tcg/helper-a64.h diff --git a/target/arm/helper-mve.h b/target/arm/tcg/helper-mve.h similarity index 100% rename from target/arm/helper-mve.h rename to target/arm/tcg/helper-mve.h diff --git a/target/arm/helper-sme.h b/target/arm/tcg/helper-sme.h similarity index 100% rename from target/arm/helper-sme.h rename to target/arm/tcg/helper-sme.h diff --git a/target/arm/helper-sve.h b/target/arm/tcg/helper-sve.h similarity index 100% rename from target/arm/helper-sve.h rename to target/arm/tcg/helper-sve.h --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905829; cv=none; d=zohomail.com; s=zohoarc; b=gipeZhCre2+/ekR/+WLIj8v6cvIPIscyaX7eFEKlPzmJuNEMuPUeLfJ0Zc0gGdAO5Kb4X9yXk5/s9MUZitSYZ20q6xVRiOAAyMQVvKLIuH0sOt3dCoDS4QdfM4VWP/KcVmcS/pxH3xhK7xI82Z4MhbAlauQ5LUro5x9cAkeNNcM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905829; h=Content-Type:Content-Transfer-Encoding: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=kyd9YD67afENN/WZ4WK9/2k+BPiSbgkUwINKrCywvQA=; b=lSGl2xUFPvqam3/tyP66iVW5/l5iv9PjgehraQbNeRe4fsu40R4An/yKSD38JDRRDkZQaDO/R/AiDASV4bHz2l9xe/yRpJ+UOX8+kX4UqTrs8WMdkRUxY1ZZHToRpAh1kbhRqQjuFfnqCZavtCpGwLxh0p+yFM/eaMjBcMMcWqc= 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 1683905829395125.67654582581952; Fri, 12 May 2023 08:37:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmx-0003JD-F0; Fri, 12 May 2023 11:34:35 -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 1pxUms-0003Gt-BG for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:32 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmq-00060D-7I for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:29 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3062db220a3so6639294f8f.0 for ; Fri, 12 May 2023 08:34:27 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905666; x=1686497666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kyd9YD67afENN/WZ4WK9/2k+BPiSbgkUwINKrCywvQA=; b=H3qpNy6hXN04uU2348n0hetl6MGGNPcOTXmMYiTpcg6t5LPAiZCh2RLYootv7VmPEq cmaMF0jazu4dhlVAfXM2DnI7x4r4UWoqn8IOlIXO73qFK45xs95/+R0d2zoYqFr747R8 ma5pM4BHmcUKudTds7uVfwPmgafM4PREr87Oqd3LSdwPc8qImHMcTU6Y652FfBYKXsk7 tnxMmI42JCeilrwc6xg0ttVyT7Wb/NhNUrIgEhOfxZijogzuXFciP/LqjeYY7wCTe8IO Gv4Bp8yIFiPBx2iBGPNu7p3LPwDKT1KREibfUMn8o5RvhMjat8CD5YEIk10PtMvqmdic YAOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905666; x=1686497666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kyd9YD67afENN/WZ4WK9/2k+BPiSbgkUwINKrCywvQA=; b=Teg33hzb4l9TcLrdAWAFPiaSqDWGYF4t/TCh/sPTpTl1lxXwOYrodCJsPbmqeyS48R sljISkLxL75lRI5G1My4mDABGvAV9rTMs7CusLMEWr5RArVtgO62UtPEaK5eg+boC/tH 8D3NeLzHK7GkmlOwCuyZiRTXnJyT3U8xdOXCgJ+aO38ONlA8u0a1dBqAWwzUfVqdxx3k YTyWMCE3+7/EG8v2daLO5YO/QJFJNxJsCnTOTR+g2+FN48VRunelPx5tKc4hdDFBf5MB naQy2b5uUnCX2FElO2LBs809sZ8J7xEi7pFD4lfMfpDIn/2iI2qXM18h1J9fESx0kOI1 4vEg== X-Gm-Message-State: AC+VfDxwDomrjGbhDv8zzNQT/7P1+sKUStOfHUb1iAo5k0OpLJLsSI9g jVXBHo3y/WOFL55lvEQGQ3LvYmSDYSOpzQdIYHA= X-Google-Smtp-Source: ACHHUZ58Xu4nf66gDCrnVbI19y0jfSMURpyG2hXR/C/1Sf8edLo2Y3IN3Y4MxVlG+PG4RBcTufPDeA== X-Received: by 2002:a5d:5503:0:b0:306:2d3d:a108 with SMTP id b3-20020a5d5503000000b003062d3da108mr18030517wrv.11.1683905666762; Fri, 12 May 2023 08:34:26 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 03/12] target/arm: Don't allow stage 2 page table walks to downgrade to NS Date: Fri, 12 May 2023 16:34:14 +0100 Message-Id: <20230512153423.3704893-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@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=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905830205100001 Bit 63 in a Table descriptor is only the NSTable bit for stage 1 translations; in stage 2 it is RES0. We were incorrectly looking at it all the time. This causes problems if: * the stage 2 table descriptor was incorrectly setting the RES0 bit * we are doing a stage 2 translation in Secure address space for a NonSecure stage 1 regime -- in this case we would incorrectly do an immediate downgrade to NonSecure A bug elsewhere in the code currently prevents us from getting to the second situation, but when we fix that it will be possible. Cc: qemu-stable@nongnu.org Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20230504135425.2748672-2-peter.maydell@linaro.org --- target/arm/ptw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/arm/ptw.c b/target/arm/ptw.c index bd75da8dbcf..8ac6d9b1d0c 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -1415,17 +1415,18 @@ static bool get_phys_addr_lpae(CPUARMState *env, S1= Translate *ptw, descaddrmask &=3D ~indexmask_grainsize; =20 /* - * Secure accesses start with the page table in secure memory and + * Secure stage 1 accesses start with the page table in secure memory = and * can be downgraded to non-secure at any step. Non-secure accesses * remain non-secure. We implement this by just ORing in the NSTable/NS * bits at each step. + * Stage 2 never gets this kind of downgrade. */ tableattrs =3D is_secure ? 0 : (1 << 4); =20 next_level: descaddr |=3D (address >> (stride * (4 - level))) & indexmask; descaddr &=3D ~7ULL; - nstable =3D extract32(tableattrs, 4, 1); + nstable =3D !regime_is_stage2(mmu_idx) && extract32(tableattrs, 4, 1); if (nstable) { /* * Stage2_S -> Stage2 or Phys_S -> Phys_NS --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905839; cv=none; d=zohomail.com; s=zohoarc; b=JuqhETZYsiAOVJomAmRu8ioUn5nmu4SKitJiNJhllLdgEEE90N+Euwoi0oqQQH0d8BtxJOgZ4DL0NgZzKrkjJvvm0xJdIgvSv2XVrle/8pouEVzL3dkqY6bOKlnxbVCcxbAHLrNaVWP9bkZ7CGqPpnKkQmyNi+HA8ONHj/bFeQE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905839; h=Content-Transfer-Encoding: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=kIU6WkE8HsxiJwKu+luu3cepl9J7rIWwpNf7ePFCk2Q=; b=VsWDXDdpbQUUP/FM68JyMnMGRa7hxxS+/6tmsbPgJH9yEyxXpriavTS1JBPZQa2iRhOTOt6AE9xTWR0KZVTKSj6Xe5qDRZz6jlpMohyAzXGNu6Rp/iMvP7EEKTE2WjQx6RlEa47lhsJ3kzO4laCOI+XUiWcSn4xKta8sX2NLriU= 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 1683905839424439.8351404316985; Fri, 12 May 2023 08:37:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmx-0003JE-EH; Fri, 12 May 2023 11:34:35 -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 1pxUmu-0003HH-Ei for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:32 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmr-00060V-9d for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:31 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f42bcf5df1so46487865e9.3 for ; Fri, 12 May 2023 08:34:28 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905668; x=1686497668; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kIU6WkE8HsxiJwKu+luu3cepl9J7rIWwpNf7ePFCk2Q=; b=nrL245xTN6/Nic7rK6qBWGelFZ48wwS6n+Arwwm5EJYuifHY+wSClVK9I11WcrtMf+ vCKqoB2166pN+HbcGl/rYHbgUCRinzakVdk4ta4NsxWC63nc3u6Aq57GisntTilxb7za vkpsiLsOddpxHB/2lB0I0yeCGF+v/sIdrnRlML3KBCOUwnXx7S1IQX5ip6J3OU+F4/oL BNekjDm5IDYuPgfkpZ47TU9bS6NByIp8bG2uOcnvxAgwsKupANg7gqMOzI18Ca1nCwft IH+NAMADpjmrevFamGzDEJ5Yj+fQPPfBzmNR/q1C9i6D5u6c0lIV4ouKR6TzyGbbN2sL O4cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905668; x=1686497668; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kIU6WkE8HsxiJwKu+luu3cepl9J7rIWwpNf7ePFCk2Q=; b=FgHrWSRVIRcxa+87g+a+1ySKjj2aE0/ByeVUtIqfpQBPkTn78AzxwGx394L1iXiI1E ybnhR5WDqPgOM10ZUpFZjG5AbwcoQGvTO+occGOdhmRco3AEh/9tzc8cmiRIx69/rxYL zRLd2ysZFgS4wkLLOzakUAsBSNba5jJui/ius3Ucup37ZEYclBBbZTQD5DFwyZMQ25bN sNQ8JwP+p4lZ+WLq3rZaOAI82CK4dWZUueynUbYkCat5obOEE0WVoOFdQRVRE1J60Rv+ BShNYlnNV4BugMTWP3ayR8AOTQ8DgY4QTRVUdHPBO+4aJOjALVGJw9wzOoPGzgJDeywI BeuQ== X-Gm-Message-State: AC+VfDxy9w9bf1gGueuatxn6hVHJzRnjp9iYbacuy9LA6cv/SPRIW3PB W85D6MO+qJTf7Ec7XY0WwgAKJ5TNUS65rnxVfvE= X-Google-Smtp-Source: ACHHUZ5JjOxHGAdBWmRcTiXd2s06bJblWJBKrxFU8WMfBNr6+B1UEuzMw54ghDEp9P3orWfJxqnAVw== X-Received: by 2002:a7b:c7c3:0:b0:3f3:195b:d18c with SMTP id z3-20020a7bc7c3000000b003f3195bd18cmr15852750wmk.30.1683905667935; Fri, 12 May 2023 08:34:27 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 04/12] target/arm: Fix handling of SW and NSW bits for stage 2 walks Date: Fri, 12 May 2023 16:34:15 +0100 Message-Id: <20230512153423.3704893-5-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@linaro.org> MIME-Version: 1.0 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=2a00:1450:4864:20::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905840272100001 Content-Type: text/plain; charset="utf-8" We currently don't correctly handle the VSTCR_EL2.SW and VTCR_EL2.NSW configuration bits. These allow configuration of whether the stage 2 page table walks for Secure IPA and NonSecure IPA should do their descriptor reads from Secure or NonSecure physical addresses. (This is separate from how the translation table base address and other parameters are set: an NS IPA always uses VTTBR_EL2 and VTCR_EL2 for its base address and walk parameters, regardless of the NSW bit, and similarly for Secure.) Provide a new function ptw_idx_for_stage_2() which returns the MMU index to use for descriptor reads, and use it to set up the .in_ptw_idx wherever we call get_phys_addr_lpae(). For a stage 2 walk, wherever we call get_phys_addr_lpae(): * .in_ptw_idx should be ptw_idx_for_stage_2() of the .in_mmu_idx * .in_secure should be true if .in_mmu_idx is Stage2_S This allows us to correct S1_ptw_translate() so that it consistently always sets its (out_secure, out_phys) to the result it gets from the S2 walk (either by calling get_phys_addr_lpae() or by TLB lookup). This makes better conceptual sense because the S2 walk should return us an (address space, address) tuple, not an address that we then randomly assign to S or NS. Our previous handling of SW and NSW was broken, so guest code trying to use these bits to put the s2 page tables in the "other" address space wouldn't work correctly. Cc: qemu-stable@nongnu.org Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1600 Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20230504135425.2748672-3-peter.maydell@linaro.org --- target/arm/ptw.c | 76 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 25 deletions(-) diff --git a/target/arm/ptw.c b/target/arm/ptw.c index 8ac6d9b1d0c..a89aa70b8b2 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -103,6 +103,37 @@ ARMMMUIdx arm_stage1_mmu_idx(CPUARMState *env) return stage_1_mmu_idx(arm_mmu_idx(env)); } =20 +/* + * Return where we should do ptw loads from for a stage 2 walk. + * This depends on whether the address we are looking up is a + * Secure IPA or a NonSecure IPA, which we know from whether this is + * Stage2 or Stage2_S. + * If this is the Secure EL1&0 regime we need to check the NSW and SW bits. + */ +static ARMMMUIdx ptw_idx_for_stage_2(CPUARMState *env, ARMMMUIdx stage2idx) +{ + bool s2walk_secure; + + /* + * We're OK to check the current state of the CPU here because + * (1) we always invalidate all TLBs when the SCR_EL3.NS bit changes + * (2) there's no way to do a lookup that cares about Stage 2 for a + * different security state to the current one for AArch64, and AArch32 + * never has a secure EL2. (AArch32 ATS12NSO[UP][RW] allow EL3 to do + * an NS stage 1+2 lookup while the NS bit is 0.) + */ + if (!arm_is_secure_below_el3(env) || !arm_el_is_aa64(env, 3)) { + return ARMMMUIdx_Phys_NS; + } + if (stage2idx =3D=3D ARMMMUIdx_Stage2_S) { + s2walk_secure =3D !(env->cp15.vstcr_el2 & VSTCR_SW); + } else { + s2walk_secure =3D !(env->cp15.vtcr_el2 & VTCR_NSW); + } + return s2walk_secure ? ARMMMUIdx_Phys_S : ARMMMUIdx_Phys_NS; + +} + static bool regime_translation_big_endian(CPUARMState *env, ARMMMUIdx mmu_= idx) { return (regime_sctlr(env, mmu_idx) & SCTLR_EE) !=3D 0; @@ -220,7 +251,6 @@ static bool S1_ptw_translate(CPUARMState *env, S1Transl= ate *ptw, ARMMMUIdx mmu_idx =3D ptw->in_mmu_idx; ARMMMUIdx s2_mmu_idx =3D ptw->in_ptw_idx; uint8_t pte_attrs; - bool pte_secure; =20 ptw->out_virt =3D addr; =20 @@ -232,8 +262,8 @@ static bool S1_ptw_translate(CPUARMState *env, S1Transl= ate *ptw, if (regime_is_stage2(s2_mmu_idx)) { S1Translate s2ptw =3D { .in_mmu_idx =3D s2_mmu_idx, - .in_ptw_idx =3D is_secure ? ARMMMUIdx_Phys_S : ARMMMUIdx_P= hys_NS, - .in_secure =3D is_secure, + .in_ptw_idx =3D ptw_idx_for_stage_2(env, s2_mmu_idx), + .in_secure =3D s2_mmu_idx =3D=3D ARMMMUIdx_Stage2_S, .in_debug =3D true, }; GetPhysAddrResult s2 =3D { }; @@ -244,12 +274,12 @@ static bool S1_ptw_translate(CPUARMState *env, S1Tran= slate *ptw, } ptw->out_phys =3D s2.f.phys_addr; pte_attrs =3D s2.cacheattrs.attrs; - pte_secure =3D s2.f.attrs.secure; + ptw->out_secure =3D s2.f.attrs.secure; } else { /* Regime is physical. */ ptw->out_phys =3D addr; pte_attrs =3D 0; - pte_secure =3D is_secure; + ptw->out_secure =3D s2_mmu_idx =3D=3D ARMMMUIdx_Phys_S; } ptw->out_host =3D NULL; ptw->out_rw =3D false; @@ -270,7 +300,7 @@ static bool S1_ptw_translate(CPUARMState *env, S1Transl= ate *ptw, ptw->out_phys =3D full->phys_addr | (addr & ~TARGET_PAGE_MASK); ptw->out_rw =3D full->prot & PAGE_WRITE; pte_attrs =3D full->pte_attrs; - pte_secure =3D full->attrs.secure; + ptw->out_secure =3D full->attrs.secure; #else g_assert_not_reached(); #endif @@ -293,11 +323,6 @@ static bool S1_ptw_translate(CPUARMState *env, S1Trans= late *ptw, } } =20 - /* Check if page table walk is to secure or non-secure PA space. */ - ptw->out_secure =3D (is_secure - && !(pte_secure - ? env->cp15.vstcr_el2 & VSTCR_SW - : env->cp15.vtcr_el2 & VTCR_NSW)); ptw->out_be =3D regime_translation_big_endian(env, mmu_idx); return true; =20 @@ -2726,7 +2751,7 @@ static bool get_phys_addr_twostage(CPUARMState *env, = S1Translate *ptw, hwaddr ipa; int s1_prot, s1_lgpgsz; bool is_secure =3D ptw->in_secure; - bool ret, ipa_secure, s2walk_secure; + bool ret, ipa_secure; ARMCacheAttrs cacheattrs1; bool is_el0; uint64_t hcr; @@ -2740,20 +2765,11 @@ static bool get_phys_addr_twostage(CPUARMState *env= , S1Translate *ptw, =20 ipa =3D result->f.phys_addr; ipa_secure =3D result->f.attrs.secure; - if (is_secure) { - /* Select TCR based on the NS bit from the S1 walk. */ - s2walk_secure =3D !(ipa_secure - ? env->cp15.vstcr_el2 & VSTCR_SW - : env->cp15.vtcr_el2 & VTCR_NSW); - } else { - assert(!ipa_secure); - s2walk_secure =3D false; - } =20 is_el0 =3D ptw->in_mmu_idx =3D=3D ARMMMUIdx_Stage1_E0; - ptw->in_mmu_idx =3D s2walk_secure ? ARMMMUIdx_Stage2_S : ARMMMUIdx_Sta= ge2; - ptw->in_ptw_idx =3D s2walk_secure ? ARMMMUIdx_Phys_S : ARMMMUIdx_Phys_= NS; - ptw->in_secure =3D s2walk_secure; + ptw->in_mmu_idx =3D ipa_secure ? ARMMMUIdx_Stage2_S : ARMMMUIdx_Stage2; + ptw->in_secure =3D ipa_secure; + ptw->in_ptw_idx =3D ptw_idx_for_stage_2(env, ptw->in_mmu_idx); =20 /* * S1 is done, now do S2 translation. @@ -2861,6 +2877,16 @@ static bool get_phys_addr_with_struct(CPUARMState *e= nv, S1Translate *ptw, ptw->in_ptw_idx =3D is_secure ? ARMMMUIdx_Stage2_S : ARMMMUIdx_Sta= ge2; break; =20 + case ARMMMUIdx_Stage2: + case ARMMMUIdx_Stage2_S: + /* + * Second stage lookup uses physical for ptw; whether this is S or + * NS may depend on the SW/NSW bits if this is a stage 2 lookup for + * the Secure EL2&0 regime. + */ + ptw->in_ptw_idx =3D ptw_idx_for_stage_2(env, mmu_idx); + break; + case ARMMMUIdx_E10_0: s1_mmu_idx =3D ARMMMUIdx_Stage1_E0; goto do_twostage; @@ -2884,7 +2910,7 @@ static bool get_phys_addr_with_struct(CPUARMState *en= v, S1Translate *ptw, /* fall through */ =20 default: - /* Single stage and second stage uses physical for ptw. */ + /* Single stage uses physical for ptw. */ ptw->in_ptw_idx =3D is_secure ? ARMMMUIdx_Phys_S : ARMMMUIdx_Phys_= NS; break; } --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905789; cv=none; d=zohomail.com; s=zohoarc; b=ZToID04d/ZF/sfTyVLQidSgFMTI7WGCk4F/G+cf7n63/XROc1/8izKg9GDrIT+3CbtutqqeE4Ng5bv52IdVdyuANnSnb62CMrgaU2XIjRAOGTDO6uhLia7l1eVouJdZWQixSxJpT65yS1fuvyX4TZXQIxm7jF0QmCsKZct1jQSY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905789; h=Content-Type:Content-Transfer-Encoding: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=XS1NtYn5iwPNS9VhylpiqLFc8xoyrR7WGR1e+ZwATeA=; b=I9vZBr/3/shZ35EXLXfcEfb9aufvmRBxOjeMKLZdzmKV8j+Of9SQYeLygSbrQcW7kG4StPiOgkvdq2BvHHDQ5cErCuMZRQNaiDnyXxTLpy3E+N3QEpS6/QAvXX4qRWS6RrJDmp8GnHvg5ZLKA9GBNwJ48VgWDMTPC3V0s+f82q8= 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 1683905789466433.9093670888192; Fri, 12 May 2023 08:36:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmy-0003JO-3L; Fri, 12 May 2023 11:34:36 -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 1pxUmw-0003IA-Nv for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmu-00060f-1p for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3078aa0b152so5108487f8f.3 for ; Fri, 12 May 2023 08:34:29 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905668; x=1686497668; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=XS1NtYn5iwPNS9VhylpiqLFc8xoyrR7WGR1e+ZwATeA=; b=g6aMt2lZWFzdNN4G33fNPgujoR7YBhLNT2gSy1wrhFyOIle904SOMimGxvUf//cstq gAjmOt9/4ypvj87Ydnb1Fht4ztsgmrb8TQDUC23C01+bQhEC9Sw4rAbQXxZqNSJ/CA/Z 0yT1eVW8jYzKITihSDqVdFLsXhOeB/XT48POPR8JjiQloikzooxVaUAgCjYqfAv9y9N0 RYNBVVeZ3JEH60Esie8L3FW6+g2/o/u7mpmtIFzN6X+fCFAnbQRbwQ9dJZ+ExS+tOmpe LR6MmpPjr/un2QUq4khCIxY3xSLNek986v5BIWvm8fkWjrU9JJxoRNjKnmZzAyvE0Y/g ML6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905668; x=1686497668; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XS1NtYn5iwPNS9VhylpiqLFc8xoyrR7WGR1e+ZwATeA=; b=NERtNmbQ2Y8zK9s+z9BUrg765pD+a0wO+A3D8OZYymbV71nHl0RE2o9ZDGAe6bqE5+ U3eI+oOLdvqZ3PkVppZ0Nq1EBfRj+1YgUChH4FKl2u5Bpig1BdLvvM6CoCwfZpAGwtmt /Igc8BaA0ne4MXMhPOHPN5zsipWtejM95AvRILsy9dq2ll7Vm/s8Z+twLO4tYvIRDnWl dwI+CBIj8Ozbw0JaFPYaOtuJ2j54do5xwqqnhXhXvpzAQeMWf5wkvPRlt4NyqwigouaT QinAyNFs1ijv7/GazLO1tUIpQNyzUCsAuaixko8ams5KW6EmQM9DpafBYWk78yfestbi Xe+w== X-Gm-Message-State: AC+VfDwUpCcUjTlY13dRxpJcAk8WyoSolId4s+2VksGVGRj5J0g9YsmL Es9Ydegw2ntlmVNhD4nkHXQ7rvQ8i+W5VUdiwf4= X-Google-Smtp-Source: ACHHUZ478s+tsScnWDX/oeWpVUiblAeiEb1lk5D/Utt3if1UAgMxdYLtOlB3NDKH6DF1Wze1Ezs4AA== X-Received: by 2002:a5d:594e:0:b0:307:8691:1ea5 with SMTP id e14-20020a5d594e000000b0030786911ea5mr14626380wri.26.1683905668528; Fri, 12 May 2023 08:34:28 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 05/12] MAINTAINERS: Update Akihiko Odaki's email address Date: Fri, 12 May 2023 16:34:16 +0100 Message-Id: <20230512153423.3704893-6-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@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=2a00:1450:4864:20::42b; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42b.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905790153100001 From: Akihiko Odaki I am now employed by Daynix. Although my role as a reviewer of macOS-related change is not very relevant to the employment, I decided to use the company email address to avoid confusions from different addresses. Signed-off-by: Akihiko Odaki Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20230506072333.32510-1-akihiko.odaki@daynix.com Signed-off-by: Peter Maydell --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f757369373f..ff2aa53bb9a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2566,7 +2566,7 @@ Core Audio framework backend M: Gerd Hoffmann M: Philippe Mathieu-Daud=C3=A9 R: Christian Schoenebeck -R: Akihiko Odaki +R: Akihiko Odaki S: Odd Fixes F: audio/coreaudio.c =20 @@ -2850,7 +2850,7 @@ F: docs/devel/ui.rst Cocoa graphics M: Peter Maydell M: Philippe Mathieu-Daud=C3=A9 -R: Akihiko Odaki +R: Akihiko Odaki S: Odd Fixes F: ui/cocoa.m =20 --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905810; cv=none; d=zohomail.com; s=zohoarc; b=erNcpQpoyLSvkg3lUvCkP3Zry9LQMe2gaCgoCWlZLRdvtQX3l5p1a94I0ySQmYuzLB3vV44Gh+JdWZbAl1g4MH3BswcC7iMF5Z60wQ1j5MaglqZSzpq9HFJa1Iest+M3/nv7SeO3MhEzQ1VZq5cEKc/VVIyKkZHuzHbMxS6bNyo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905810; h=Content-Type:Content-Transfer-Encoding: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=ksHar8N+0Wuxm9xVK5IpU2NDqipg/hiJLw1bDCUtaPM=; b=ZH7/41qanpbR5VKwFlkCWrpXhq63tRWqB7PPiK7WG+5f/HupJxOqje4hFyp5hUm0tSq/cqU/SfyhNz5vy42A6MlTgCaDcSbn5bFK0te5J45RzeVx9xeTstr1bIYPMzKuGQn8LBezHLahJtJp17xLBV40umxrqkIp8iuDWERXZUU= 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 1683905810168498.52531877463935; Fri, 12 May 2023 08:36:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmy-0003JX-Lw; Fri, 12 May 2023 11:34:36 -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 1pxUmw-0003IQ-VN for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmu-00060m-6B for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3075e802738so9192666f8f.1 for ; Fri, 12 May 2023 08:34:30 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905669; x=1686497669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ksHar8N+0Wuxm9xVK5IpU2NDqipg/hiJLw1bDCUtaPM=; b=NOeqPaeFJJJrEDnI4SRd6qZTnHP6mi26ucC2OcXIokEeHf1Ji4QXKp/yLdrCHAi+Pc QAJq6BwtD6yJz1ZQa1yTkSnDHxpXl8BPUzZGKlGk9BZAoFGSLmSj4dkha2oUNTkV/FY7 OobW/aoslaoqnuzrlklO6i7XuyfSxcUB3hYjZODjtBM+eW1EwNW5TNp3VF1So7S1SoVR ztnDv6t/JJwwZN3iuqKum62dFHoL9CXFlOOhA0YmfiFkduitZQ7582OcJ6/+HAGGy0PJ /3AxS7mffuvWw+SI4pgkPog/y0IbB9013o9L9JW2so5z16ofSd+HZb+Eh/Il5JqfSNM/ 1bLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905669; x=1686497669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ksHar8N+0Wuxm9xVK5IpU2NDqipg/hiJLw1bDCUtaPM=; b=Vy7ClWlBKBH3QPqi5tH6ffSJuPNdcA795cc8+QHKZQYiH6wWUBHZR3lv9teMRPYUFm 3QCL56sJTLuUKeXE85G+kPVCStb8kS4UQ8ZOZw4rdPO7JD0u01VIPDHlkLqqhBEQwiY+ bfgUQ4kLgPaFeMNzT3DR0ajyCsSyukdobUGgnkoQtRET+yvKe15qHOJtqbGTPRdBTyqI YKm3DndIc6gYuHVGXDCi0DlDZPvlsdq8WBbO8KuT1N3j0izPiaZ6jY8R8daqkWht6Xd2 u7vtl5TvS/rgJw77ZpmkaknRvwLRCR2f9JF9l5pt0WfcxhaPGsyIX2PyJNP8yH4b/g/X qarg== X-Gm-Message-State: AC+VfDx1uv+eJVXosyihrEqhZrvS/hQhFlpk6nYLaAjbQglF/nOZiKXM wgG40rs7KGO2fbpXvgNsch+xZu9HLs/h4x414Dk= X-Google-Smtp-Source: ACHHUZ7haJuiWfHKDKkA6JdPF/D5e8kHm8OGFKyf1ss7rpnnNBhtlJ7cdw5dI0syU5IMfCMzDCSGHw== X-Received: by 2002:a05:6000:10a:b0:306:29f9:ab47 with SMTP id o10-20020a056000010a00b0030629f9ab47mr17982594wrx.49.1683905668934; Fri, 12 May 2023 08:34:28 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 06/12] ui: Fix pixel colour channel order for PNG screenshots Date: Fri, 12 May 2023 16:34:17 +0100 Message-Id: <20230512153423.3704893-7-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@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=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905812035100004 When we take a PNG screenshot the ordering of the colour channels in the data is not correct, resulting in the image having weird colouring compared to the actual display. (Specifically, on a little-endian host the blue and red channels are swapped; on big-endian everything is wrong.) This happens because the pixman idea of the pixel data and the libpng idea differ. PIXMAN_a8r8g8b8 defines that pixels are 32-bit values, with A in bits 24-31, R in bits 16-23, G in bits 8-15 and B in bits 0-7. This means that on little-endian systems the bytes in memory are B G R A and on big-endian systems they are A R G B libpng, on the other hand, thinks of pixels as being a series of values for each channel, so its format PNG_COLOR_TYPE_RGB_ALPHA always wants bytes in the order R G B A This isn't the same as the pixman order for either big or little endian hosts. The alpha channel is also unnecessary bulk in the output PNG file, because there is no alpha information in a screenshot. To handle the endianness issue, we already define in ui/qemu-pixman.h various PIXMAN_BE_* and PIXMAN_LE_* values that give consistent byte-order pixel channel formats. So we can use PIXMAN_BE_r8g8b8 and PNG_COLOR_TYPE_RGB, which both have an in-memory byte order of R G B and 3 bytes per pixel. (PPM format screenshots get this right; they already use the PIXMAN_BE_r8g8b8 format.) Cc: qemu-stable@nongnu.org Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1622 Fixes: 9a0a119a382867 ("Added parameter to take screenshot with screendump = as PNG") Signed-off-by: Peter Maydell Reviewed-by: Marc-Andr=C3=A9 Lureau Message-id: 20230502135548.2451309-1-peter.maydell@linaro.org --- ui/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/console.c b/ui/console.c index 6e8a3cdc62d..e173731e205 100644 --- a/ui/console.c +++ b/ui/console.c @@ -311,7 +311,7 @@ static bool png_save(int fd, pixman_image_t *image, Err= or **errp) png_struct *png_ptr; png_info *info_ptr; g_autoptr(pixman_image_t) linebuf =3D - qemu_pixman_linebuf_create(PIXMAN_a8r8g8b8, wi= dth); + qemu_pixman_linebuf_create(PIXMAN_BE_r8g8b8, width); uint8_t *buf =3D (uint8_t *)pixman_image_get_data(linebuf); FILE *f =3D fdopen(fd, "wb"); int y; @@ -341,7 +341,7 @@ static bool png_save(int fd, pixman_image_t *image, Err= or **errp) png_init_io(png_ptr, f); =20 png_set_IHDR(png_ptr, info_ptr, width, height, 8, - PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE, + PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); =20 png_write_info(png_ptr, info_ptr); --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905742; cv=none; d=zohomail.com; s=zohoarc; b=L+0G/UaRO5S1hzWqPWN1e27kk8cCE56foxIa8xRs/bDXubsGm/LiRwQV6pJkKPTKdWXKMwzbLnFRp58HeVOCOjJPAO0wHWG35uqclCJKVLGKUfdYXA8fxZmjyrpwuSY+OmQ7XJvVR3QlG6fvEYHLuhGWL83yyGjN01hQ1yWFvng= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905742; h=Content-Transfer-Encoding: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=TwjdV0u7g7SQc0AXDs6qHHfGv0SY+yIqn/gwE95FkUs=; b=m/zIztjRHnFsLsT0azyCotyFq1Zbn8gyxswuO8waKBzvlvJFPrbx26SPxEMrh4h2L2DFPK8af3ZSxE5vBLNvJFOj6ZGqeP6I3Jz/a439aXscu7BP8TfUZuRmzdz0VqMJLGQ01xAZ9SqF5W2SzyDMJeox9HhS/2Dz7UBRyWuphRk= 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 1683905742317607.6701235406476; Fri, 12 May 2023 08:35:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmz-0003Jh-47; Fri, 12 May 2023 11:34:37 -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 1pxUmw-0003IC-Op for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUms-000607-4V for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:33 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f315735514so326652955e9.1 for ; Fri, 12 May 2023 08:34:29 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905669; x=1686497669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=TwjdV0u7g7SQc0AXDs6qHHfGv0SY+yIqn/gwE95FkUs=; b=OZte7KFPN8AM2OsbImCZjVxCd8WI5nuvf3OGQXpgkykpMQnoMEbTNjRiTwWsigt1DJ usPrmHufP4wMTdZj03zVESbq8/oiSsnyt6k9r9NA1g1Mjt6WLnwQZFLbEF99GswBBDnM T8bZBjRbBrMhJG6abGO1gwbuoEh/1X2k/AUm/wkdUkrBWLsmrudtCpESDqdRGlM39TOm 9mAs1wqiyvTtQjXP5wYQ24mPIIOlPWyETk5fPzhInVTDO77JOl3nsiSsxoTxPx/qjvf3 fvpINskbSzMyW/dTTdI5W4TFUGcP1l1IQsnAZeyRhIfWsQACtmN+tg2ImK1LZL+rXgKB otTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905669; x=1686497669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TwjdV0u7g7SQc0AXDs6qHHfGv0SY+yIqn/gwE95FkUs=; b=WuvsrkL3WbGOblpnmAFUg3CKWHslB1EItvmtnZhwgKlzaaay3BwM8LIhOtf7MIFTG4 IhB7bmxSSc35MEJQBDwTqPKR2goSVy4uMCnD9Yc0SuFl8zKkyaxWdteUpcFBfn5aWP4x NhD1ADLyrUtuhqQVjMrX78HCzkLZLYjg1g8V/Xc7vDeznPeQDl4+m8zqumRwEr7bXRpm b/1FxZctK5b7SkZLsQJfWZdvY3a0W4NO+ojb3J3JiNQLfCqXDgO7X8W0oS/ft+wTgcAM qEMi5DbiWiwVEDTSRjjf3X8YmiECO6ktsPghxqTEQ8J5jovhbPAtXaHYOohQ3goZFfTD biyA== X-Gm-Message-State: AC+VfDyUccRsSvIiNkmYqhk5/EfRlx2cNKPapUN+etz49kFs31EmxhUr 424ZNUniYLbErTahn2uXUP4HdqKk81zVaaHQ/sU= X-Google-Smtp-Source: ACHHUZ4H4VA5Q/sRdnpNxSyejtzINoUzg0cpWBEADFPWThyjL/W25vC1ZZ3n9w8QubEVMhschHhWwQ== X-Received: by 2002:adf:dfc7:0:b0:307:c0c4:1094 with SMTP id q7-20020adfdfc7000000b00307c0c41094mr6145760wrn.34.1683905669313; Fri, 12 May 2023 08:34:29 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 07/12] docs: Remove unused weirdly-named cross-reference targets Date: Fri, 12 May 2023 16:34:18 +0100 Message-Id: <20230512153423.3704893-8-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@linaro.org> MIME-Version: 1.0 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=2a00:1450:4864:20::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905743728100001 Content-Type: text/plain; charset="utf-8" In the doc sources, we have a few cross-reference targets with odd names "pcsys_005fxyz". These are the legacy of the semi-automated conversion of the old info docs to rST (the '005f' is because ASCII 0x5f is '_' and the old info link names had underscores in them). Remove the targets which nothing links to, and rename the two targets which are used to something a bit more descriptive. Signed-off-by: Peter Maydell Message-id: 20230421163642.1151904-1-peter.maydell@linaro.org Reviewed-by: Markus Armbruster --- docs/system/devices/igb.rst | 2 +- docs/system/devices/ivshmem.rst | 2 -- docs/system/devices/net.rst | 2 +- docs/system/devices/usb.rst | 2 -- docs/system/keys.rst | 2 +- docs/system/linuxboot.rst | 2 +- docs/system/target-i386.rst | 4 ---- 7 files changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/system/devices/igb.rst b/docs/system/devices/igb.rst index 70edadd5743..0bcdd857473 100644 --- a/docs/system/devices/igb.rst +++ b/docs/system/devices/igb.rst @@ -29,7 +29,7 @@ Using igb =3D=3D=3D=3D=3D=3D=3D=3D=3D =20 Using igb should be nothing different from using another network device. S= ee -:ref:`pcsys_005fnetwork` in general. +:ref:`Network_emulation` in general. =20 However, you may also need to perform additional steps to activate SR-IOV feature on your guest. For Linux, refer to [4]_. diff --git a/docs/system/devices/ivshmem.rst b/docs/system/devices/ivshmem.= rst index b03a48afa3a..e7aaf34c200 100644 --- a/docs/system/devices/ivshmem.rst +++ b/docs/system/devices/ivshmem.rst @@ -1,5 +1,3 @@ -.. _pcsys_005fivshmem: - Inter-VM Shared Memory device ----------------------------- =20 diff --git a/docs/system/devices/net.rst b/docs/system/devices/net.rst index 4b2640c448e..2ab516d4b09 100644 --- a/docs/system/devices/net.rst +++ b/docs/system/devices/net.rst @@ -1,4 +1,4 @@ -.. _pcsys_005fnetwork: +.. _Network_Emulation: =20 Network emulation ----------------- diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index 37cb9b33aea..74166810731 100644 --- a/docs/system/devices/usb.rst +++ b/docs/system/devices/usb.rst @@ -1,5 +1,3 @@ -.. _pcsys_005fusb: - USB emulation ------------- =20 diff --git a/docs/system/keys.rst b/docs/system/keys.rst index e596ae6c4e7..0fc17b994d3 100644 --- a/docs/system/keys.rst +++ b/docs/system/keys.rst @@ -1,4 +1,4 @@ -.. _pcsys_005fkeys: +.. _GUI_keys: =20 Keys in the graphical frontends ------------------------------- diff --git a/docs/system/linuxboot.rst b/docs/system/linuxboot.rst index 228650abc5e..5db2e560dc5 100644 --- a/docs/system/linuxboot.rst +++ b/docs/system/linuxboot.rst @@ -27,4 +27,4 @@ virtual serial port and the QEMU monitor to the console w= ith the -append "root=3D/dev/hda console=3DttyS0" -nographic =20 Use Ctrl-a c to switch between the serial console and the monitor (see -:ref:`pcsys_005fkeys`). +:ref:`GUI_keys`). diff --git a/docs/system/target-i386.rst b/docs/system/target-i386.rst index 77c2f3b9799..1b8a1f248ab 100644 --- a/docs/system/target-i386.rst +++ b/docs/system/target-i386.rst @@ -3,8 +3,6 @@ x86 System emulator ------------------- =20 -.. _pcsys_005fdevices: - Board-specific documentation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20 @@ -32,8 +30,6 @@ Architectural features i386/sgx i386/amd-memory-encryption =20 -.. _pcsys_005freq: - OS requirements ~~~~~~~~~~~~~~~ =20 --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905810; cv=none; d=zohomail.com; s=zohoarc; b=hbWpZqNwqj6/WEJHm5CctTbItbPJQS4HkAfYNx8ZuQPFkoAK/xTiCN8/+eZtB5fkMu95eA4B5xkWvrwlDRDpUluEF3nH8VrzNiptjq/fNgv84vBTnChY1n1utWtq7xuRku99NJ0tYHtGEW4QDGqHLuf8JxxEMipysLpQrTh1udg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905810; h=Content-Type:Content-Transfer-Encoding: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=kjK9aJrCfxZTneunS8eCzgZ7hBHA0FsCr6nfpvU0y2M=; b=VeXHG/oxpgUOvgRVBK5UKP7jrYeYf189uEPjBRvplBktNPAR6xOrzpR/A241CsZR+qT9TnGFlph/MmeIFKp+1X/c3pWG4DYltNlY9rIjHW7cZ0OGtSIXVTjrxmQTq/dsjAq6W1eo9aD9X/KnTUNlVqMPUjziaWyu2AytTO2LlOg= 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 1683905810091873.917581472792; Fri, 12 May 2023 08:36:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmy-0003JY-Mk; Fri, 12 May 2023 11:34:36 -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 1pxUmw-0003IB-Ou for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmu-000614-Om for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3063208beedso9650972f8f.1 for ; Fri, 12 May 2023 08:34:30 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905670; x=1686497670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kjK9aJrCfxZTneunS8eCzgZ7hBHA0FsCr6nfpvU0y2M=; b=sncGoFpl7c/z8JOlUU0c5Q2Dj9a1hb/tkZljfni4tdHHk7531SeFTltS0QC7e+9JQg q2LRfedQrwV67e4cdgK7XFmnzthB5Fz47DifvBERmLmK4WMwkbopdpxBdlyi8egSfwu4 xo715Ba+TmLIml+pMJhhK9cz6BKIkP+eShRcNyyrHhfcXIvgoI0/KUCNMykTQw60Q5DD ppx/DzZdXXZhIMvZka4Llyg29T8vTMsfqaWPLFmoXRyddq0CQvTqfbKpUQ2V/JFPm6E1 6x3SneTm3WApAQ77nzdMWtqmfjtkgrzIjqNS/SJxPpQ5S01XOCm7u8sK4spDbiOJphPQ 2Jzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905670; x=1686497670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kjK9aJrCfxZTneunS8eCzgZ7hBHA0FsCr6nfpvU0y2M=; b=lskuqQJjSqFmnKYLedyfB9gQBi7uPh6c2uCv8mwaAwhF8+OuXYYK9hCF4/fzpP+ms/ TgPSdHMaym1pPGUzLEPBAneyS39Ax28Lqqn+cyOZrHHVooq71WSptmoJ1/XaY6i9aLat spbl8aBUSu4+Tyq9jqMi4Tt9VXSYuKPic+MPwgL0hhsPql3d3B12WxJVr58jbsai/LpP QkyeagWokqQZ7hBFXODVYfpa88u6LhaJ5SlT8B8yEwiI19BX7ssO/0f2odvhyN3V+h5V KgwPNwdIv45PUGAYVVhQPuEXg0s4LmlBcIrW4QSJRz22bdncon5rqA29r13Vb4bSOayg RfNA== X-Gm-Message-State: AC+VfDzIXrj/EmaBC7OOHNUPz19ssyNb/0lOhs9e40/rK/OwI/lyI8O5 CG7Y8rWMsiePByBzFc68N+ay8c2FSua00CLneqg= X-Google-Smtp-Source: ACHHUZ58YkMxnb0Z9zwnvWtgTmJjk8pdDvGZCgrHGGwoPibHhT6BHwgJXIWLRur8WK4Nlj/h8CL14w== X-Received: by 2002:a7b:cd0f:0:b0:3f4:23df:c681 with SMTP id f15-20020a7bcd0f000000b003f423dfc681mr13061474wmj.12.1683905669726; Fri, 12 May 2023 08:34:29 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 08/12] hw/mips/malta: Fix minor dead code issue Date: Fri, 12 May 2023 16:34:19 +0100 Message-Id: <20230512153423.3704893-9-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@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=2a00:1450:4864:20::42d; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42d.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905812017100003 Coverity points out (in CID 1508390) that write_bootloader has some dead code, where we assign to 'p' and then in the following line assign to it again. This happened as a result of the refactoring in commit cd5066f8618b. Fix the dead code by removing the 'void *v' variable entirely and instead adding a cast when calling bl_setup_gt64120_jump_kernel(), as we do at its other callsite in write_bootloader_nanomips(). Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/mips/malta.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hw/mips/malta.c b/hw/mips/malta.c index af9021316de..e3be2eea563 100644 --- a/hw/mips/malta.c +++ b/hw/mips/malta.c @@ -748,7 +748,6 @@ static void write_bootloader(uint8_t *base, uint64_t ru= n_addr, uint64_t kernel_entry) { uint32_t *p; - void *v; =20 /* Small bootloader */ p =3D (uint32_t *)base; @@ -785,9 +784,7 @@ static void write_bootloader(uint8_t *base, uint64_t ru= n_addr, * */ =20 - v =3D p; - bl_setup_gt64120_jump_kernel(&v, run_addr, kernel_entry); - p =3D v; + bl_setup_gt64120_jump_kernel((void **)&p, run_addr, kernel_entry); =20 /* YAMON subroutines */ p =3D (uint32_t *) (base + 0x800); --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905750; cv=none; d=zohomail.com; s=zohoarc; b=QqAJYMe89LUUqaYdZ4+doKBFOGjMvXxsJ2XtB2G/OCf7Qdx+SwlCucA4WcQ6IViPiwyff6XFg2MH2CslKrNnHeMsGE4gdEMFSK4bDrACxS7CTKpVHCjsHg4w2v7xsCVLC3cR711oYLc9+P8CSOX/hzakMPZwKZ7cEMC8DSOvjAI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905750; h=Content-Transfer-Encoding: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=LpqeiGLd9+Zpci9T4aU8zCO1St33HFkig64yWhzOPRs=; b=Mrt5YO6AdJ/TnXGPD6sAJm2cCyJtOx0HmZCts4TQWx0HERnaf3LPRM4KwzoeEJ9LCvGDXQlydQI7Tvb9KzE1mwzc7m5aKenxNE1hELktr7jbiegaj/tgdmI4usqB+Z5YKSd5GDu/U7PKmyB7V1ng3Xxtg6noRuT2lFze9/oRh9M= 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 1683905750476770.1657063502928; Fri, 12 May 2023 08:35:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmz-0003KQ-PL; Fri, 12 May 2023 11:34:37 -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 1pxUmw-0003IM-UL for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -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 1pxUmu-00061B-Q7 for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f49bf0223cso33382965e9.1 for ; Fri, 12 May 2023 08:34:31 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905670; x=1686497670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LpqeiGLd9+Zpci9T4aU8zCO1St33HFkig64yWhzOPRs=; b=WwTkAsKZxuQIxOfwcQAEJZcXjLxTSG4nMBqYdLVhvac4/IaMDbrRO6cdldHNXtyk2+ CwYqnRrRJOExgT6Us48FNUIrM4MhOllWLQFLh1VTMryS0/mVOxfnAORimM/u3KOTs2nC ihdfnCKAzvATRqm0p6CmsZvd6llO12g5l4jPPHLtULk6qyk55CdoLzSfc8n2TlbvHLNA 9ZYnk8i97qtJ0whkSCUqw4kH2PE+GGuhEgj6cbHruLWroKOcG+7tpGLlWnPnXpPFgJhv dvPgh8WpX+dhwxeH/+S3bLl26iZq6Hr3PrgS4zUgJ4pwYydmQrvOKvt5ZjeNqaulWIdP 5rSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905670; x=1686497670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LpqeiGLd9+Zpci9T4aU8zCO1St33HFkig64yWhzOPRs=; b=RqbgkioHOGbH2/iarxVlln2cF/IKNQr8FxzuVy6OB5Roc6DXYHgdwER2UpH8xJ+7aX 4MqC+RwETFNIT2BoerAQhL9XiDiezedigVRBpKtgE65lHeL+MlXHSZSJGP0jcEPMuthf fWkfha3vAOBMSY8wG0+Fx27ZdcRngFtR8yEVk1nmTAu7Q1xUO9qXqAe7WcxUR0oASbDJ YWV43W9JM6Wr2z/QaDv6xSqNgJ1x7/gK69haZRaUrl6EAFMoTjI/b2+F6lilOXIkUjFL V5CcL2XaMz1CSOuZu5PrnKeJqZg13pInLJvLV5YCSdxuJaF2Iu5CziywM2LeYWSgGi6N BNyA== X-Gm-Message-State: AC+VfDx4a/AkpyBno1+JQjiJOOxd/Lu2APWUxZzrDnoa8LEEmVIhSLSf a7eB5fs829VVNT1yHKFvTK3HJdcY2/zL0UGxSk4= X-Google-Smtp-Source: ACHHUZ7aSglKKDYjAf7K9eybnS9xN7V56mdZoeBgQW7YnEQ5Q98OKQUpygWfGRXah9eY/aOXRTQCKw== X-Received: by 2002:a7b:c357:0:b0:3ee:19b4:a2e6 with SMTP id l23-20020a7bc357000000b003ee19b4a2e6mr16154929wmj.19.1683905670141; Fri, 12 May 2023 08:34:30 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 09/12] target/arm: Select SEMIHOSTING when using TCG Date: Fri, 12 May 2023 16:34:20 +0100 Message-Id: <20230512153423.3704893-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@linaro.org> MIME-Version: 1.0 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=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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905751679100001 Content-Type: text/plain; charset="utf-8" From: Fabiano Rosas Semihosting has been made a 'default y' entry in Kconfig, which does not work because when building --without-default-devices, the semihosting code would not be available. Make semihosting unconditional when TCG is present. Fixes: 29d9efca16 ("arm/Kconfig: Do not build TCG-only boards on a KVM-only= build") Signed-off-by: Fabiano Rosas Reviewed-by: Richard Henderson Message-id: 20230508181611.2621-2-farosas@suse.de Signed-off-by: Peter Maydell --- target/arm/Kconfig | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/target/arm/Kconfig b/target/arm/Kconfig index 39f05b6420a..3fffdcb61b6 100644 --- a/target/arm/Kconfig +++ b/target/arm/Kconfig @@ -1,13 +1,7 @@ config ARM bool + select ARM_COMPATIBLE_SEMIHOSTING if TCG =20 config AARCH64 bool select ARM - -# This config exists just so we can make SEMIHOSTING default when TCG -# is selected without also changing it for other architectures. -config ARM_SEMIHOSTING - bool - default y if TCG && ARM - select ARM_COMPATIBLE_SEMIHOSTING --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905818; cv=none; d=zohomail.com; s=zohoarc; b=LnEXBOBnuky1idT6Vh5YG4wkghgjTRxxZOKv3eWNvsx9laJn/1T6UauZwErwLc2bMfm5b1D/Ju5a0eqTTHLvN9uT0XyArQ+PxHVKGFLAYUk+cgmSt+tMMzdTR+F2pyZUjmz6aujDmRGs9Ec1KfGOEkfMHNkyUVySCRApGbmXICE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905818; h=Content-Transfer-Encoding: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=RnW/AUyjUxOEXR5d7HBrhpE2wftw/HzIlcz6MIiCreU=; b=daFZkI3OZ/RoSnaDtalOplZlA8LPwH78QFDwWsqhOI7FdmZx2SAKbBmiPD+0FNha6XTqvn18D1MEtfG0N0VlnNrh+vUuQ7VIvoFlxSl+UGVF2L8rH28ZF0Ol4UZ9HeoLy3wDeYD2I7etKWC9nMfCkgsSAeUj+onyJ68lZrLH8UE= 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 1683905818448963.8073870115704; Fri, 12 May 2023 08:36:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUmy-0003JP-30; Fri, 12 May 2023 11:34:36 -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 1pxUmw-0003IR-Vj for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmu-00061G-Pu for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:34 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3063b5f32aaso6631309f8f.2 for ; Fri, 12 May 2023 08:34:31 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905670; x=1686497670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=RnW/AUyjUxOEXR5d7HBrhpE2wftw/HzIlcz6MIiCreU=; b=uYM0Rd2Sq90rnDSSW1Nr9qyRXPnbAuSAxTZnzs/HCbRDbhp0MK0A+KYLyCxsQ6f6MT sFhR7/Bvw4IXpLLEEz/J2AX3OLp8Jdm8DeL/GKfK3Laz0ErBCmztgVemW6ZRK1E0zMVA LHLMxoACsR8Gl/V7inGgy4OrUBxGtkLVTj5P3vRncdktwTzbgHw5AWidXW3vLNkX9Atg /O9TaaXO9yXIpON+3S/WTZUHLCus0igj21SavPtmEdBMLKllpWkFXsEtEKkbec5Otxyl MNwyf7sjYbOlaZdUt8KUwm+057i6eACr5ikj0TnQ3AbWHIFIxLtltJJapNJasn2T91Fl Xctg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905670; x=1686497670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RnW/AUyjUxOEXR5d7HBrhpE2wftw/HzIlcz6MIiCreU=; b=OXucfXqqf4sUMFUSosuo6s4fc9VxJr8Ca/q0fef1L7E2g4eTzrzob8Owatyamj14TZ 5kxEyobApTLTRhge/PF1MJdm0heFRZs6T/bIc5X+hpY8ycxg+/Rj/Yz5IrgAea+BGD+I paDMC1QsfjUpy/2E1TjTIawjNwyrpEVGPhp5gP0KXAdJstVlNSZpoXuawK895dPbluL6 e5cXBRZui55yb4rRxuunzrrniD0mjs0eIXlD4D8SsOswqhpGDMB6h96d4nd/1RGyu98r NOGW7aEwcyecWhd/zkkw591TKTJRQrcdN3fzvUIY3XoWaQbCysfITeB1y65n0PTOTMgr N6UQ== X-Gm-Message-State: AC+VfDzVaL7ipvS46ZSZ+4sVaTUqv3aNIu1aVejuPytNTVJ3ZZ0o8x3J imUZtJzI6619XxG0oi9cF3kqkeJIgQOJG8lwixA= X-Google-Smtp-Source: ACHHUZ4pASZbN/Q6aRn2CtBsGs/VNGkeE1JruFbwpG0v4MucdGWKNGnhbTbBDtnpRh+WcwH4jVwJUw== X-Received: by 2002:a1c:f313:0:b0:3f3:468c:a780 with SMTP id q19-20020a1cf313000000b003f3468ca780mr17727931wmq.4.1683905670555; Fri, 12 May 2023 08:34:30 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 10/12] target/arm: Select CONFIG_ARM_V7M when TCG is enabled Date: Fri, 12 May 2023 16:34:21 +0100 Message-Id: <20230512153423.3704893-11-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@linaro.org> MIME-Version: 1.0 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=2a00:1450:4864:20::42e; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42e.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905820143100003 Content-Type: text/plain; charset="utf-8" From: Fabiano Rosas We cannot allow this config to be disabled at the moment as not all of the relevant code is protected by it. Commit 29d9efca16 ("arm/Kconfig: Do not build TCG-only boards on a KVM-only build") moved the CONFIGs of several boards to Kconfig, so it is now possible that nothing selects ARM_V7M (e.g. when doing a --without-default-devices build). Return the CONFIG_ARM_V7M entry to a state where it is always selected whenever TCG is available. Fixes: 29d9efca16 ("arm/Kconfig: Do not build TCG-only boards on a KVM-only= build") Signed-off-by: Fabiano Rosas Reviewed-by: Richard Henderson Message-id: 20230508181611.2621-3-farosas@suse.de Signed-off-by: Peter Maydell --- target/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/target/arm/Kconfig b/target/arm/Kconfig index 3fffdcb61b6..5947366f6e4 100644 --- a/target/arm/Kconfig +++ b/target/arm/Kconfig @@ -1,6 +1,7 @@ config ARM bool select ARM_COMPATIBLE_SEMIHOSTING if TCG + select ARM_V7M if TCG =20 config AARCH64 bool --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905794; cv=none; d=zohomail.com; s=zohoarc; b=cizfc3idXAGLQcrcKOeNdO+mizvAyCEoalvokoTbU5qWovoAVL1ps3rhtqKL7NMuTzlCp8DBGsos34VGqlxMBFO/xERVWND2f9VdBTXLbiflNXP8yZLmxrQnHNCSzEdmVymae/Ef7OSN6CEUR4hCNAq4TyqNZB4I7wAxZ1FdWRc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905794; h=Content-Transfer-Encoding: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=AXV2plFqMtuy0pHb/J9d/CLNGI8Bz2t89kpWW/Hiui4=; b=gUe2hgXcUb8R99463BLBxeQUfjmSNpBIY1vueqrO1znHLYORL1mt0dIVH6xkOKrc/f1dcSJO95mESP+vuUhUIvkNj6NOzUoXTnnKc53DLiEMetJkvwn/c03d3vd5Re5Yx8S3jXhzRsuGSpjrQ/vb6qgLkfeq21mHBphitmidzvU= 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 1683905794763237.03608284510392; Fri, 12 May 2023 08:36:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUn0-0003L5-Fg; Fri, 12 May 2023 11:34:38 -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 1pxUmx-0003JM-TZ for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:35 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmu-00061P-UL for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:35 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f450815d0bso37956185e9.0 for ; Fri, 12 May 2023 08:34:31 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905671; x=1686497671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=AXV2plFqMtuy0pHb/J9d/CLNGI8Bz2t89kpWW/Hiui4=; b=aJVbGG78QeZf5aSXmQR0vvxEwktz5Pu0OpvyuijgyTCfczpBQMIWHLJbQouIWHTS1L eDhiOPf6p7GeoOh7R4zD43GKvQ4M8vfHSQ4+MDTG80QWSv2sZX2Y3dszVghkQcaPVNYV nZYQ8TCIBiHsIXIfqcotN5Qx+cwTxM8CZUhVk/MFzwGbrdPFApdfeXSq5R8t2p07MpwF /w1C1f/Km5KDPZg5zhoUWL1KMhwQXabUKIBD4esSSF0LZ5dz1PFfLRPBlixnodR+mNyy 3aCjnHXasQjsu4FTKIonG84v0/V7Y1skcfkhggbNxtiD971yKkGKmkAi9ConTd4GT9BJ CuNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905671; x=1686497671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AXV2plFqMtuy0pHb/J9d/CLNGI8Bz2t89kpWW/Hiui4=; b=d/y3B2sk/9YqgdZ+E+yeWXctP+EzjoFg5g5ywfoLFbmlAcF0jKwSgbgrTzVTpBz+ob bGDstCGPlkVdIiDgahTXt/+3g+IBamstu3X9nxaR5w8B8DK2yZ2LfxjBLPFy0tR8Gp4U 3+DUAgNxhrVKl2uJ4a/l8RdWkX02r9W7N6eEcYkXBbjBx7DBeAKRWPYRsIcLaEolQH5W rIcWb7e8X5Y1RAO8LdG95BrIEt4m4n8ieR7k3gm0Xlhq1Ktx4DegrvL16seBx57Pum55 2QwdI8bvjTqObYnKL2cF64NPp2msRzi71rjA7rZ12D3ERlSp0ewJx6OP+plqvLZSHsXY wE7A== X-Gm-Message-State: AC+VfDwHAtiMJ7j9Srvu9DvNFX0hzM1aeEh0e1nhzUoam4QgLSQ0hsKr 2isQ5448TNdA3ai9sVa5mIRt245/mJE69ENRbLY= X-Google-Smtp-Source: ACHHUZ6huxlsi6aRlxXQ+tQ65HkxJNk7v0p5nuv/zQ1Oz3hKTB1VZ+1RqG5Wafh0lS14tuvUKIyI6A== X-Received: by 2002:adf:eec4:0:b0:307:97dd:1de2 with SMTP id a4-20020adfeec4000000b0030797dd1de2mr13424425wrp.25.1683905670911; Fri, 12 May 2023 08:34:30 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 11/12] tests/qtest: Don't run cdrom boot tests if no accelerator is present Date: Fri, 12 May 2023 16:34:22 +0100 Message-Id: <20230512153423.3704893-12-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@linaro.org> MIME-Version: 1.0 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=2a00:1450:4864:20::32a; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905795948100003 Content-Type: text/plain; charset="utf-8" From: Fabiano Rosas On a build configured with: --disable-tcg --enable-xen it is possible to produce a QEMU binary with no TCG nor KVM support. Skip the cdrom boot tests if that's the case. Fixes: 0c1ae3ff9d ("tests/qtest: Fix tests when no KVM or TCG are present") Signed-off-by: Fabiano Rosas Reviewed-by: Thomas Huth Message-id: 20230508181611.2621-4-farosas@suse.de Signed-off-by: Peter Maydell --- tests/qtest/cdrom-test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/qtest/cdrom-test.c b/tests/qtest/cdrom-test.c index 26a2400181a..31d3bacd8c3 100644 --- a/tests/qtest/cdrom-test.c +++ b/tests/qtest/cdrom-test.c @@ -130,6 +130,11 @@ static void test_cdboot(gconstpointer data) =20 static void add_x86_tests(void) { + if (!qtest_has_accel("tcg") && !qtest_has_accel("kvm")) { + g_test_skip("No KVM or TCG accelerator available, skipping boot te= sts"); + return; + } + qtest_add_data_func("cdrom/boot/default", "-cdrom ", test_cdboot); qtest_add_data_func("cdrom/boot/virtio-scsi", "-device virtio-scsi -device scsi-cd,drive=3Dcdr " @@ -176,6 +181,11 @@ static void add_x86_tests(void) =20 static void add_s390x_tests(void) { + if (!qtest_has_accel("tcg") && !qtest_has_accel("kvm")) { + g_test_skip("No KVM or TCG accelerator available, skipping boot te= sts"); + return; + } + qtest_add_data_func("cdrom/boot/default", "-cdrom ", test_cdboot); qtest_add_data_func("cdrom/boot/virtio-scsi", "-device virtio-scsi -device scsi-cd,drive=3Dcdr " --=20 2.34.1 From nobody Sat Feb 7 03:41:05 2026 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=1683905767; cv=none; d=zohomail.com; s=zohoarc; b=JpVEqMK3Qhfo+A9mBsr2q4lTdhw4eKur7dDk+sMLDf2kkW/wsf6xITfg1y4sDvzcu9AlXr+aeSVoW1cTxBx2w2HNdlAQQ+c1ghaDYbywYbg/OcABGmXw7QmyW7dAUv0FzmL3Yy3w8H6tG+KeBSt08tniIZJaDlK5zkbGJhxtAMI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683905767; h=Content-Transfer-Encoding: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=MfgZqZm2zk0bmdXpzgHr1vazqFZCSNBl9fC/DQYjgpo=; b=HW9mnn2qhXpNM2pLi7/RgfInT9cB4QFsQO31VBKhpx7GkT+5OrowjkkBjkIVN8kVhV9pURFmvuFa6YcRt1auvY68G8aHgOQ7qAGpComVk24HJl+gmyeXMLslQHH8YIBQMdIQCmrQHFSoDkaH18tIn73CKHlVBe4o8Pv7Mt28UGo= 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 168390576700922.716042057469963; Fri, 12 May 2023 08:36:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxUn0-0003Kz-AM; Fri, 12 May 2023 11:34:38 -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 1pxUmy-0003JW-Kh for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:36 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxUmw-00061T-Fz for qemu-devel@nongnu.org; Fri, 12 May 2023 11:34:36 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-307d84f5ce4so1143093f8f.2 for ; Fri, 12 May 2023 08:34:33 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id b6-20020adfee86000000b002feea065cc9sm11721297wro.111.2023.05.12.08.34.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 08:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905671; x=1686497671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=MfgZqZm2zk0bmdXpzgHr1vazqFZCSNBl9fC/DQYjgpo=; b=IhpwqVgQDrQawq4+hpgIxv0RZZ6aFU9/OfsP1vvbO/EWeaV7fNjKeiq8OJ54JYsIxm HXQvetb2W3Nsrqnn4jv04pdJSZ52IMPMpjUMvlPIVzMa0XU5dP63NgGnLvE826K056Jk WVqH536Zk9+fm8vktn2NFessH3ENZ0w9dZRqfpSLBULJJ3vVBP8ESVmLZypcpwHJy6ce ieh37mS2XuhyxhPzYnEiXfUOB3XArEz8AE2M29rq1MTpsb/0rsHkQbvWMHZ8Y9c2kY4R reVA+AxUSvlu2dicuc5xHEK/Q0NwVy4B6CQqIVXt2f61AdieUdfO2wgmkjb2j6BfWwNw unyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905671; x=1686497671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MfgZqZm2zk0bmdXpzgHr1vazqFZCSNBl9fC/DQYjgpo=; b=IXBfGflhynR9JONvQgHUvEu8yaxrfvKWkWV6kzLi3S+JKfaTFl0IOstvr8hyuh2vSd IDuznqUGumZdwopcp5qZyk7e8WdWnrrImSxfjjOjQ14V7a1G34aE8Ij3UrUF4W+8cy7e bv73arhatXxmMPq/sIe6ypYoUUrkQI2qUsexECQAJ9hHgAgOsrv5m3QeP309mDaXcJiK ZrNNAYaFP02OHTnKelc131dpgWyXJnUZbjvJ0hcFUU1O1dFJS5hJzQeVmFzhlMuznoRE 7gWjUawBUyL/Pwvri0mMQdvt10RVapvDzDM4OmvPlj4as0GI53ERDpkYlvHW5cLSgeyl yl0w== X-Gm-Message-State: AC+VfDybkqEfpiK3ItMnfyDxrAJRnxvKzrDSxxdr464Ykd3FY1rW2VF/ +Ow06d9t2/2dwZlwJpt0O+nGQWJNBOCH1ZI6VJs= X-Google-Smtp-Source: ACHHUZ6tpEtvI8oFNnGiIUaGen61laZua1LqT0qfdADS3q0+7JcIrl2wVAoTpX1g7BwV3Cq/bDPNrA== X-Received: by 2002:adf:e3cd:0:b0:306:2bff:aad8 with SMTP id k13-20020adfe3cd000000b003062bffaad8mr17223383wrm.35.1683905671325; Fri, 12 May 2023 08:34:31 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 12/12] target/arm: Correct AArch64.S2MinTxSZ 32-bit EL1 input size check Date: Fri, 12 May 2023 16:34:23 +0100 Message-Id: <20230512153423.3704893-13-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512153423.3704893-1-peter.maydell@linaro.org> References: <20230512153423.3704893-1-peter.maydell@linaro.org> MIME-Version: 1.0 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=2a00:1450:4864:20::433; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x433.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1683905767880100003 Content-Type: text/plain; charset="utf-8" In check_s2_mmu_setup() we have a check that is attempting to implement the part of AArch64.S2MinTxSZ that is specific to when EL1 is AArch32: if !s1aarch64 then // EL1 is AArch32 min_txsz =3D Min(min_txsz, 24); Unfortunately we got this wrong in two ways: (1) The minimum txsz corresponds to a maximum inputsize, but we got the sense of the comparison wrong and were faulting for all inputsizes less than 40 bits (2) We try to implement this as an extra check that happens after we've done the same txsz checks we would do for an AArch64 EL1, but in fact the pseudocode is *loosening* the requirements, so that txsz values that would fault for an AArch64 EL1 do not fault for AArch32 EL1, because it does Min(old_min, 24), not Max(old_min, 24). You can see this also in the text of the Arm ARM in table D8-8, which shows that where the implemented PA size is less than 40 bits an AArch32 EL1 is still OK with a configured stage2 T0SZ for a 40 bit IPA, whereas if EL1 is AArch64 then the T0SZ must be big enough to constrain the IPA to the implemented PA size. Because of part (2), we can't do this as a separate check, but have to integrate it into aa64_va_parameters(). Add a new argument to that function to indicate that EL1 is 32-bit. All the existing callsites except the one in get_phys_addr_lpae() can pass 'false', because they are either doing a lookup for a stage 1 regime or else they don't care about the tsz/tsz_oob fields. Cc: qemu-stable@nongnu.org Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1627 Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20230509092059.3176487-1-peter.maydell@linaro.org --- target/arm/internals.h | 12 +++++++++++- target/arm/gdbstub64.c | 2 +- target/arm/helper.c | 15 +++++++++++++-- target/arm/ptw.c | 14 ++------------ target/arm/tcg/pauth_helper.c | 6 +++--- 5 files changed, 30 insertions(+), 19 deletions(-) diff --git a/target/arm/internals.h b/target/arm/internals.h index 0df8f3b8bca..c869d18c38c 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -1091,8 +1091,18 @@ typedef struct ARMVAParameters { ARMGranuleSize gran : 2; } ARMVAParameters; =20 +/** + * aa64_va_parameters: Return parameters for an AArch64 virtual address + * @env: CPU + * @va: virtual address to look up + * @mmu_idx: determines translation regime to use + * @data: true if this is a data access + * @el1_is_aa32: true if we are asking about stage 2 when EL1 is AArch32 + * (ignored if @mmu_idx is for a stage 1 regime; only affects tsz/tsz_oob) + */ ARMVAParameters aa64_va_parameters(CPUARMState *env, uint64_t va, - ARMMMUIdx mmu_idx, bool data); + ARMMMUIdx mmu_idx, bool data, + bool el1_is_aa32); =20 int aa64_va_parameter_tbi(uint64_t tcr, ARMMMUIdx mmu_idx); int aa64_va_parameter_tbid(uint64_t tcr, ARMMMUIdx mmu_idx); diff --git a/target/arm/gdbstub64.c b/target/arm/gdbstub64.c index c1f7e8c934b..d7b79a6589b 100644 --- a/target/arm/gdbstub64.c +++ b/target/arm/gdbstub64.c @@ -233,7 +233,7 @@ int aarch64_gdb_get_pauth_reg(CPUARMState *env, GByteAr= ray *buf, int reg) ARMMMUIdx mmu_idx =3D arm_stage1_mmu_idx(env); ARMVAParameters param; =20 - param =3D aa64_va_parameters(env, -is_high, mmu_idx, is_data); + param =3D aa64_va_parameters(env, -is_high, mmu_idx, is_data, = false); return gdb_get_reg64(buf, pauth_ptr_mask(param)); } default: diff --git a/target/arm/helper.c b/target/arm/helper.c index 2297626bfb3..0b7fd2e7e6c 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -4904,7 +4904,7 @@ static TLBIRange tlbi_aa64_get_range(CPUARMState *env= , ARMMMUIdx mmuidx, unsigned int page_size_granule, page_shift, num, scale, exponent; /* Extract one bit to represent the va selector in use. */ uint64_t select =3D sextract64(value, 36, 1); - ARMVAParameters param =3D aa64_va_parameters(env, select, mmuidx, true= ); + ARMVAParameters param =3D aa64_va_parameters(env, select, mmuidx, true= , false); TLBIRange ret =3D { }; ARMGranuleSize gran; =20 @@ -11193,7 +11193,8 @@ static ARMGranuleSize sanitize_gran_size(ARMCPU *cp= u, ARMGranuleSize gran, } =20 ARMVAParameters aa64_va_parameters(CPUARMState *env, uint64_t va, - ARMMMUIdx mmu_idx, bool data) + ARMMMUIdx mmu_idx, bool data, + bool el1_is_aa32) { uint64_t tcr =3D regime_tcr(env, mmu_idx); bool epd, hpd, tsz_oob, ds, ha, hd; @@ -11289,6 +11290,16 @@ ARMVAParameters aa64_va_parameters(CPUARMState *en= v, uint64_t va, } } =20 + if (stage2 && el1_is_aa32) { + /* + * For AArch32 EL1 the min txsz (and thus max IPA size) requiremen= ts + * are loosened: a configured IPA of 40 bits is permitted even if + * the implemented PA is less than that (and so a 40 bit IPA would + * fault for an AArch64 EL1). See R_DTLMN. + */ + min_tsz =3D MIN(min_tsz, 24); + } + if (tsz > max_tsz) { tsz =3D max_tsz; tsz_oob =3D true; diff --git a/target/arm/ptw.c b/target/arm/ptw.c index a89aa70b8b2..69c05cd9dad 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -1134,17 +1134,6 @@ static int check_s2_mmu_setup(ARMCPU *cpu, bool is_a= a64, uint64_t tcr, =20 sl0 =3D extract32(tcr, 6, 2); if (is_aa64) { - /* - * AArch64.S2InvalidTxSZ: While we checked tsz_oob near the top of - * get_phys_addr_lpae, that used aa64_va_parameters which apply - * to aarch64. If Stage1 is aarch32, the min_txsz is larger. - * See AArch64.S2MinTxSZ, where min_tsz is 24, translated to - * inputsize is 64 - 24 =3D 40. - */ - if (iasize < 40 && !arm_el_is_aa64(&cpu->env, 1)) { - goto fail; - } - /* * AArch64.S2InvalidSL: Interpretation of SL depends on the page s= ize, * so interleave AArch64.S2StartLevel. @@ -1284,7 +1273,8 @@ static bool get_phys_addr_lpae(CPUARMState *env, S1Tr= anslate *ptw, int ps; =20 param =3D aa64_va_parameters(env, address, mmu_idx, - access_type !=3D MMU_INST_FETCH); + access_type !=3D MMU_INST_FETCH, + !arm_el_is_aa64(env, 1)); level =3D 0; =20 /* diff --git a/target/arm/tcg/pauth_helper.c b/target/arm/tcg/pauth_helper.c index de067fa7168..62af5693419 100644 --- a/target/arm/tcg/pauth_helper.c +++ b/target/arm/tcg/pauth_helper.c @@ -293,7 +293,7 @@ static uint64_t pauth_addpac(CPUARMState *env, uint64_t= ptr, uint64_t modifier, ARMPACKey *key, bool data) { ARMMMUIdx mmu_idx =3D arm_stage1_mmu_idx(env); - ARMVAParameters param =3D aa64_va_parameters(env, ptr, mmu_idx, data); + ARMVAParameters param =3D aa64_va_parameters(env, ptr, mmu_idx, data, = false); uint64_t pac, ext_ptr, ext, test; int bot_bit, top_bit; =20 @@ -355,7 +355,7 @@ static uint64_t pauth_auth(CPUARMState *env, uint64_t p= tr, uint64_t modifier, ARMPACKey *key, bool data, int keynumber) { ARMMMUIdx mmu_idx =3D arm_stage1_mmu_idx(env); - ARMVAParameters param =3D aa64_va_parameters(env, ptr, mmu_idx, data); + ARMVAParameters param =3D aa64_va_parameters(env, ptr, mmu_idx, data, = false); int bot_bit, top_bit; uint64_t pac, orig_ptr, test; =20 @@ -379,7 +379,7 @@ static uint64_t pauth_auth(CPUARMState *env, uint64_t p= tr, uint64_t modifier, static uint64_t pauth_strip(CPUARMState *env, uint64_t ptr, bool data) { ARMMMUIdx mmu_idx =3D arm_stage1_mmu_idx(env); - ARMVAParameters param =3D aa64_va_parameters(env, ptr, mmu_idx, data); + ARMVAParameters param =3D aa64_va_parameters(env, ptr, mmu_idx, data, = false); =20 return pauth_original_ptr(ptr, param); } --=20 2.34.1