Received: by 2002:a17:906:dac7:b0:886:babc:7eeb with SMTP id xi7csp4642176ejb; Mon, 6 Feb 2023 14:36:06 -0800 (PST) X-Google-Smtp-Source: AK7set+8KTn4COzQPkvwdcVGrTwVhd3naqmTHno8g93Bee14qR8byF82nfnjECYjZ4Wp9E7KNkbf X-Received: by 2002:a05:622a:50e:b0:3b8:57a7:7836 with SMTP id l14-20020a05622a050e00b003b857a77836mr1837373qtx.46.1675722966121; Mon, 06 Feb 2023 14:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675722966; cv=none; d=google.com; s=arc-20160816; b=tDNIEfVEH9LkW5TsaFKIe0zwklBFa6mMGgwZM4GlgJWACkqWgt0kXsmz+rtomE46i1 LVhOg5SPoXWb14dm9c1OT3lXTNazkYPXIA78IQAUw1eKmTXz1y1gfleEOWhm/Ad88/6a gFlIIlU1pM6Gm4ULGv58d23lO4m9/yH1Br0J2bZbJNV8MEe4hv3Rm0sz8WPjs6Xv7e/7 NVDT6Dqmsa0Y6kclzsocYjx6TaWMQL3br/n6bsVsaabQOq0Z3/sMHy2RyVve+FUYZuPT PK7lFbq0BRZ87uZT+hfKBTzct36hwnf6tC1IIjdP8GallxSSUYAohY2HYIiBru8qFrYv r6sw== 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=Ja4W3C6qV83ArpsCqeiM++4iDHSuckcO6fogIFpWs7c=; b=Mtkji48HR7iJMazvaIR8PBTMmmiFj8WbjPzDaQaw5BRS6pzSJFdiOGMpznfFwypzAn tZQsc2SsSkrLiVLnh6ZwbXfBDWFT65Tm0W/UwHWcQVLHBa9DP/CfMOCYsp2nVJrPbSOh CpWlTtqG/dAHFznDCoVElveGFCtqmJqyu9sWWzOHSfL4nG+OIPgMMAWmBKC2stYUZMLl f9IWMv4Ou9gWpLfzgTBBfaABbrV4/SuLGgxidqYXsiQOaSEEPturVtTUE6ehbCNnvrAr j0n1MtGg5i9DPr5sI0gsSLtLzAiNXmFbgioEp1ZA1TbVIRvBpC2+a4uRtGY7bS/IAVwM 1NTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cHYpvU8K; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 w15-20020a05620a444f00b006ee9af422b6si10758135qkp.226.2023.02.06.14.36.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Feb 2023 14:36:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=cHYpvU8K; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPA5J-0001k4-2C; Mon, 06 Feb 2023 17:35:37 -0500 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 1pPA4s-0001hX-PV for qemu-devel@nongnu.org; Mon, 06 Feb 2023 17:35:13 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPA4r-0004Po-1Y for qemu-devel@nongnu.org; Mon, 06 Feb 2023 17:35:10 -0500 Received: by mail-wr1-x435.google.com with SMTP id d14so11869781wrr.9 for ; Mon, 06 Feb 2023 14:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ja4W3C6qV83ArpsCqeiM++4iDHSuckcO6fogIFpWs7c=; b=cHYpvU8KaluEpb/hCw66FBlkDd7BL2koB0chQOkT7S8XilYS0t80dAh8PooqKgYjW0 y5RSR6xTq5nHLmZDMuqVconLu3ZxOF7r/bLLWZk5bIJCWXzW+DeFh6GezpowlDvVAgvy szxc7pwUlTy3zCPNFQVB8lF1/r58v+GDT3AMWaENWj+yqW3w3izQsYRnlaN0lp2VK215 EaFs8y4qQdbhAV5Z3q6NAI/Dw0gttZ+ubmHQS5SrzFBYCm67D8D2vflz/QI5vdSQp7T9 u8Qxj4iHFmWYMO7H3Vxto2ZerF9nyVA/ieBV2p1Gpy+Ui7zOjLcc4V/cWr77hX/ZJQdI /hsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ja4W3C6qV83ArpsCqeiM++4iDHSuckcO6fogIFpWs7c=; b=Q5I+841EuCdYo3BGBKuAqQ0++YQ3otwXF3aCehFXce7ot+5KruoviEgMLdQLxb+9kr leyDusAKeQPExZ47GIztcg7AEgA3AOMNX4KBiEB5r9HL5PLsYXgdGAk6EdLgfba8V6+g bpd8hg7nTNcIePD9oKTBK8CXBjHb+FOVJBw60Sh2Feot60o39IcwFU666xAyNVm53p+5 InWYLETJYjAMnT0s791w+kKBB4AeAyG1/LkATQUDYwI1JGNYWvqaabruPd2lhOVOA2g1 NK2MxQFpoOYtmI3ih6WB2Ss9odNC92EsXjW09uZqL7UX+YZn7X1Z2XE3/LUytIMwPgLd KECg== X-Gm-Message-State: AO0yUKVAX1h0/FTW/uNdGllQ6Cr847qQFC+Leb87Or1W0t0uRFrStqLP aUCz9sX9EZzDh+R8D1lVuSWnISAkNvFef31t X-Received: by 2002:a05:6000:1a48:b0:2c3:db98:3e93 with SMTP id t8-20020a0560001a4800b002c3db983e93mr515860wry.18.1675722904840; Mon, 06 Feb 2023 14:35:04 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id j11-20020a5d604b000000b002b57bae7174sm9879158wrt.5.2023.02.06.14.35.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 06 Feb 2023 14:35:04 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Laurent Vivier , Richard Henderson , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 00/11] target/arm: Housekeeping around NVIC Date: Mon, 6 Feb 2023 23:34:51 +0100 Message-Id: <20230206223502.25122-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=philmd@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: oOsgv+eE/WQe Missing review: 1-3, 5, 9-10 Few cleanups while using link properties between CPU/NVIC: - Simplify ID_PFR1 on useremu - Move NVIC helpers to "hw/intc/armv7m_nvic.h" Since v1: addressed Richard's reviews - Do not restrict v7-M MMU helpers to TCG sysemu since they can be used for user-emu. Hardcode ARMMMUIdx_MUser - Convert CPUARMState::eabi to boolean - Split 'Restrict nvic to sysemu and store as NVICState' in 3 patches - Dropped following (RFC) patches: - neg_prio_requested / unrealized property problem - use object_property_add_const_link() Philippe Mathieu-Daudé (11): hw/intc/armv7m_nvic: Use OBJECT_DECLARE_SIMPLE_TYPE() macro target/arm: Simplify arm_v7m_mmu_idx_for_secstate() for user emulation target/arm: Reduce arm_v7m_mmu_idx_[all/for_secstate_and_priv]() scope target/arm: Constify ID_PFR1 on user emulation target/arm: Convert CPUARMState::eabi to boolean target/arm: Avoid resetting CPUARMState::eabi field target/arm: Restrict CPUARMState::gicv3state to sysemu target/arm: Restrict CPUARMState::arm_boot_info to sysemu target/arm: Restrict CPUARMState::nvic to sysemu target/arm: Store CPUARMState::nvic as NVICState* target/arm: Declare CPU <-> NVIC helpers in 'hw/intc/armv7m_nvic.h' hw/intc/armv7m_nvic.c | 38 ++++------ include/hw/intc/armv7m_nvic.h | 128 ++++++++++++++++++++++++++++++- linux-user/arm/cpu_loop.c | 4 +- linux-user/user-internals.h | 2 +- target/arm/cpu.c | 5 +- target/arm/cpu.h | 137 ++-------------------------------- target/arm/cpu_tcg.c | 3 + target/arm/helper.c | 12 ++- target/arm/internals.h | 14 ---- target/arm/m_helper.c | 86 +++++++++++---------- 10 files changed, 212 insertions(+), 217 deletions(-) -- 2.38.1