From patchwork Thu Jun 9 20:28:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 580316 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp1124236max; Thu, 9 Jun 2022 13:30:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvOmOovttQLJUHr7KTnktfJcQ3fByNWUXqUSO5Gczhx4I0HDY2aYRWKpEtRlOFUEDT19lS X-Received: by 2002:ac8:7c4f:0:b0:304:e122:be6 with SMTP id o15-20020ac87c4f000000b00304e1220be6mr27946067qtv.275.1654806646141; Thu, 09 Jun 2022 13:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654806646; cv=none; d=google.com; s=arc-20160816; b=h3yQrXeH37zgOrUVfJngqrG07Opb4VBiddphUSLJh4X2U+O4gU4Gu+SwCgEUPouf92 /rQw3q5A5d8K6PWaJxae/Qq6m5TkC00vs32hXqZWfR+Yh5kGBz98wVlTUgM+kqPhrdpm ymbugziAkFbxtTWJDRjnOpst9IYilokZrIJ4uojO69gV0hpG8Y7FFfo+FV4O2qLAV0TU KnIvXTgejPK+aWWRBNPrYMdUkDzRUk4x7LYgB4ltQLx5LsruWG++j1JeLUtI0+rr4RvM H2fEXmQSgksQDnjEAkuatyJkzYwt34PLiVgblCFYoIVHT5e3DPO5GMpkR82YuLwwrdXo cH4Q== 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=WdNppBEdbei6b2OSfenKY9YTOl+LPHyij0Nj78kSrVk=; b=a45PjYHCA7DnsjgMqCxrvvbUWaFO9Jp3Vm3qcVnLfQd08WC4aVFMJfmTkM4ePHPOBa zBb4HQYeezqmrMCbswt/EB2uhEV7hw6TZrpKatCbyyNirr1R0A6GgWCtUGeydTPAC7pk WP/Z8PyxZIAOsbDtjhJQYSMSPDgSqJfeY9Rzb7QvxHqDkuntI+bPdMsbj5B05vb3oABS WBFn3fyrBxNtcDEQee6RP6Uk3LWS0tsJYdfcuLNfaI8TR4jfBU8MKAVWjRq0d3y4OSCv 77ZEfvNjLbelcvTvqX5n/Vpwp9N4NUa+2iXM482xIgBTEsG724VXAd/k6E9d61rgIsKG yWJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHE3v9iR; 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 dv4-20020ad44ee4000000b004643483f8e7si13824599qvb.213.2022.06.09.13.30.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Jun 2022 13:30:46 -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=MHE3v9iR; 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]:33400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzOnl-0003P3-ME for patch@linaro.org; Thu, 09 Jun 2022 16:30:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzOmA-0003OO-6d for qemu-devel@nongnu.org; Thu, 09 Jun 2022 16:29:06 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:35822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzOm8-0008Ps-H7 for qemu-devel@nongnu.org; Thu, 09 Jun 2022 16:29:05 -0400 Received: by mail-pf1-x42f.google.com with SMTP id u2so22052257pfc.2 for ; Thu, 09 Jun 2022 13:29:03 -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=WdNppBEdbei6b2OSfenKY9YTOl+LPHyij0Nj78kSrVk=; b=MHE3v9iRYf+IdpS992xroHLdQDwd7J56/Petr+KNDwKj9ARy5sc5Lq7aETvjvC8INB oOobSQb46eW7IPAZs8DjxR4Neg7Xv/Z8qauxXqOxbIf1IfVP5+5lXKLp/7E21pRxbfXZ v6J0LKgz4rXy/65MlXtPE65y1i//nQiB7LNAv9spLzHQRVsoGI6SH+1QjvWV/M0plRCC kc6Zxu0TJHuVQnAWr+WhcUhW69jFzwZHe4AGxRVLGx46u8V4Ob38DAksMfASX3WShMOR bdn43gOnc1TI5buJnbXr2Qy6V/O9ez1OJJnC5H3tWm3v9WPasUFwsiJe9QUWPTrdB4Ze F26g== 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=WdNppBEdbei6b2OSfenKY9YTOl+LPHyij0Nj78kSrVk=; b=j+aytDDPaE2tEJOkmqFkTiQkfH2F2mC3wb5jqv2/D6KI9k8hY8Go9uvMtWYLm7CyLJ hOM7sVfo7BfQMrjV71ieP/D9eQstCyl/9wwfqERgxAjX7aFUCvnxMwzEhY/+ZMLYBeX/ j6tibqdxG3kDAWG/hbHhmhW5Bp8dHmnNwfDWFFQstq22DdnIB9PJBfw6bVuImjwGlxHr Nkp8mgKygZPDgyaIGGT7eKVxnnIVVy54izY6zDLtkYVsuvLo0K1PakyOl68MliJISnqr DDS99OVKlUI1EN9TwoYgbySbaOnWSvNWObnf2+LQTBnwpoRrORM1eABNXA6yieMwdET7 YTyw== X-Gm-Message-State: AOAM530B5EM6ZmpO9DsS+ANvdw/z2C3g9iB1P9fMuf5ThPNkzjA+e2UT bF6r+03cL2+bR0oX7nquWEZ5n0VS0+AByg== X-Received: by 2002:a05:6a00:2148:b0:4fa:92f2:bae3 with SMTP id o8-20020a056a00214800b004fa92f2bae3mr42053364pfk.69.1654806542696; Thu, 09 Jun 2022 13:29:02 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:839f:476f:678:38a]) by smtp.gmail.com with ESMTPSA id r20-20020a635d14000000b003fded88238esm7528139pgb.36.2022.06.09.13.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 13:29:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v3 00/23] target/arm: tidy exception routing Date: Thu, 9 Jun 2022 13:28:38 -0700 Message-Id: <20220609202901.1177572-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::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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=unavailable 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" This is mostly code movement at this point, out of headers and into op_helper.c and debug_helper.c. Changes for v3: * Drop helper_exception_advsimdfp_access. * Drop Rearrange Secure PL1 test in arm_debug_target_el. * Improve patch comment for helper_exception_swstep. All patches are reviewed. r~ Richard Henderson (23): target/arm: Mark exception helpers as noreturn target/arm: Add coproc parameter to syn_fp_access_trap target/arm: Move exception_target_el out of line target/arm: Move arm_singlestep_active out of line target/arm: Move arm_generate_debug_exceptions out of line target/arm: Use is_a64 in arm_generate_debug_exceptions target/arm: Move exception_bkpt_insn to debug_helper.c target/arm: Move arm_debug_exception_fsr to debug_helper.c target/arm: Rename helper_exception_with_syndrome target/arm: Introduce gen_exception_insn_el_v target/arm: Rename gen_exception_insn to gen_exception_insn_el target/arm: Introduce gen_exception_insn target/arm: Create helper_exception_swstep target/arm: Remove TBFLAG_ANY.DEBUG_TARGET_EL target/arm: Move gen_exception to translate.c target/arm: Rename gen_exception to gen_exception_el target/arm: Introduce gen_exception target/arm: Introduce gen_exception_el_v target/arm: Introduce helper_exception_with_syndrome target/arm: Remove default_exception_el target/arm: Create raise_exception_debug target/arm: Move arm_debug_target_el to debug_helper.c target/arm: Fix Secure PL1 tests in fp_exception_el target/arm/cpu.h | 128 +------------------- target/arm/helper.h | 8 +- target/arm/internals.h | 43 +------ target/arm/syndrome.h | 7 +- target/arm/translate.h | 43 +------ target/arm/debug_helper.c | 220 ++++++++++++++++++++++++++++++++-- target/arm/helper.c | 35 ++---- target/arm/op_helper.c | 52 ++++---- target/arm/translate-a64.c | 34 ++---- target/arm/translate-m-nocp.c | 15 ++- target/arm/translate-mve.c | 3 +- target/arm/translate-vfp.c | 18 ++- target/arm/translate.c | 106 ++++++++-------- 13 files changed, 360 insertions(+), 352 deletions(-)