From patchwork Sat Jun 4 04:05:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 578725 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp2131209max; Fri, 3 Jun 2022 21:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJWKhxYmwTY+mGg2hrDV0uPguxCB02UDBP8pOoT/UOCcL0+LHx1D5y5Or/ZOVgE0kB5z7G X-Received: by 2002:a05:6214:2468:b0:466:1bce:6c74 with SMTP id im8-20020a056214246800b004661bce6c74mr11428999qvb.77.1654315646135; Fri, 03 Jun 2022 21:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654315646; cv=none; d=google.com; s=arc-20160816; b=npgBDFC526zhA2hRLSH5FFOCwltKw6Bzd+k01eEU8sK1XZnkz4N4uadWy/+hqadoT0 i14tst5IXeA/DBQGHvbmGCnzKeGuJI6EEcamf+lG1H2BcCxokFDWEyN+ane8jdXExe82 ChgEMJxCizUwcwojHi8XbW+96TR77WHNPoQPG/M5IrGCQxA2JCsdwOR1gc1gGju1wU4n 0wvT2RIl0Huk9fCmJB8Lor2Rgfo+TigZnCc793xkRy2ekxjOB0fzcuLJoYH2QegIN1Ct G5E7Jt5oMq4lOtI0C+jmYLhUj6nsTEKx9g6kjGte46KxfEk1Vm+r5pIERjTVaKapzXED 87MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=seW1fdhWGUT/3IrTFxKp5B2hwNwp/rzz5mP3cAVntBY=; b=l5VDMdH9vNNPpG9mFkELxKXxc3vj0wQWhXdVbETux9sJgNDW7S6KshCjA9sMyJyZoB udJpiCc7G1JBan7wV6lsz0aRjA2MK9HRi+m7TAzLDsMpsrk5QsttJ2rM8/hg6CTFQ1ql Yb3Et+dYJ8p88g0/O239EzzRSGNFPckWSjQLrIzcemkSZgldl6FZ3LFGESBdJqB3taHV st/m5JNoePdPCfZxrjbVWF9/5t5FxbAweI4lRyAxnBZ/iIexIRnewNCYqfJ9u6vua3ig PP5Uujm0nzonCn0cdLwaQY0A+FQ4wZ+dbOOinxyLteYaXJpP/37AZwnp5WKuv+uudG+/ jWTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SymN1ePs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 5-20020a0562140d4500b004646441ac4asi5416511qvr.470.2022.06.03.21.07.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jun 2022 21:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SymN1ePs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxL4P-0007Xm-OP for patch@linaro.org; Sat, 04 Jun 2022 00:07:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxL3G-0007VR-GH for qemu-devel@nongnu.org; Sat, 04 Jun 2022 00:06:14 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:55160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxL3D-0008Uy-Aq for qemu-devel@nongnu.org; Sat, 04 Jun 2022 00:06:14 -0400 Received: by mail-pj1-x1035.google.com with SMTP id j7so8692071pjn.4 for ; Fri, 03 Jun 2022 21:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=seW1fdhWGUT/3IrTFxKp5B2hwNwp/rzz5mP3cAVntBY=; b=SymN1ePsZBXi06F47vvZUNr8xIyDLmgnBBI5aqIRirMYWVgJCqogHvZijjTulOzTBD hBb8/dJMqe2WXZW2oxA0VM0PBAqHm/PTwUB3d45pxZDaEthRziR8LHjj9ZXAcJQQ47aC pK87gbf6kUlrv66ClyITqltuD+mYyZYzC/Tak00b7mAlIQLroifDqfvFZPDaw01rVu16 WcBI0y9HKnsXCrPszfp1l3M0v674jwA651uTwOOA/osTxG4vqbptN9jUfduUy0OJd8ck VB4RxfpJOcbYf/vi6iR2JJMqcdaTFrf3SV+6UtXy6KvZ8JBu/OVVIPWMYd6rfpV7BWzH 9X8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=seW1fdhWGUT/3IrTFxKp5B2hwNwp/rzz5mP3cAVntBY=; b=vaSmkha1FX4i42m1QWg6avoHiJkebGIhQz5AWDdm2nwsqo4Uus9zQ7/gpkh01r85bE YryOVOiggLS62rYLPwSPGXuJ1auCzadYnzKpkuNgyJDlyWDxtqy8N5kHaYGXKCv3Fqq8 h0I2LjucbEluUk6DZ0vEPKOwHLvaxX4mSa31qQlSMVvotCn7ZHiK7C0dTvdTEDpShUQQ YOyIwDhR451uHolkM/D6cNWmfC3HTqRqmUvEfZ2MiBrtHO9mA/kwWvRi1OT5YjVJku70 CDPoiNeQkXfpLj/zCqs2MzHFiZ/1WFd/qLS8NwUaq/WOXQYJhKtr01BsoK5meHdJmCj1 T2kQ== X-Gm-Message-State: AOAM531xZIBNmmXMJpLuLaTTWf3wbvjsagUdVWdLSYxnuMh4P046G2g7 SagqTZ2aIlUnun68wiShH73YEZ8SGgzlRQ== X-Received: by 2002:a17:902:bd09:b0:162:1497:de0a with SMTP id p9-20020a170902bd0900b001621497de0amr13103332pls.64.1654315569560; Fri, 03 Jun 2022 21:06:09 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:3286:cc26:3d5e:3f94]) by smtp.gmail.com with ESMTPSA id a37-20020a631a65000000b003c14af50626sm6093779pgm.62.2022.06.03.21.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 21:06:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 00/28] target/arm: Split out ptw.c from helper.c Date: Fri, 3 Jun 2022 21:05:39 -0700 Message-Id: <20220604040607.269301-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The object here is to move 2500 lines out of helper.c. Yay! r~ Richard Henderson (28): target/arm: Move stage_1_mmu_idx decl to internals.h target/arm: Move get_phys_addr to ptw.c target/arm: Move get_phys_addr_v5 to ptw.c target/arm: Move get_phys_addr_v6 to ptw.c target/arm: Move get_phys_addr_pmsav5 to ptw.c target/arm: Move get_phys_addr_pmsav7_default to ptw.c target/arm: Move get_phys_addr_pmsav7 to ptw.c target/arm: Move get_phys_addr_pmsav8 to ptw.c target/arm: Move pmsav8_mpu_lookup to ptw.c target/arm: Move pmsav7_use_background_region to ptw.c target/arm: Move v8m_security_lookup to ptw.c target/arm: Move m_is_{ppb,system}_region to ptw.c target/arm: Move get_level1_table_address to ptw.c target/arm: Move combine_cacheattrs and subroutines to ptw.c target/arm: Move get_phys_addr_lpae to ptw.c target/arm: Move arm_{ldl,ldq}_ptw to ptw.c target/arm: Move {arm_s1_,}regime_using_lpae_format to tlb_helper.c target/arm: Move arm_pamax, pamax_map into ptw.c target/arm: Move get_S1prot, get_S2prot to ptw.c target/arm: Move check_s2_mmu_setup to ptw.c target/arm: Move aa32_va_parameters to ptw.c target/arm: Move ap_to_tw_prot etc to ptw.c target/arm: Move regime_is_user to ptw.c target/arm: Move regime_ttbr to ptw.c target/arm: Move regime_translation_disabled to ptw.c target/arm: Move arm_cpu_get_phys_page_attrs_debug to ptw.c target/arm: Move stage_1_mmu_idx, arm_stage1_mmu_idx to ptw.c target/arm: Pass CPUARMState to arm_ld[lq]_ptw target/arm/internals.h | 23 +- target/arm/helper.c | 2555 +-------------------------------------- target/arm/ptw.c | 2540 ++++++++++++++++++++++++++++++++++++++ target/arm/tlb_helper.c | 26 + target/arm/meson.build | 1 + 5 files changed, 2590 insertions(+), 2555 deletions(-) create mode 100644 target/arm/ptw.c