From patchwork Mon Jan 27 10:26:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 860224 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:18c8:b0:385:e875:8a9e with SMTP id w8csp1946639wrq; Mon, 27 Jan 2025 02:27:41 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWLCNChm8+o7+C2PSXNsd4vC8+0+RrCH/CVveOvD6S2CS9sPlFhs4YOgu+YHyeTAsaj6WWrYw==@linaro.org X-Google-Smtp-Source: AGHT+IGpIPwnlkawLXAbHgW7fpRj+6j49TvLIuh0UugqzSelVe1r6uzkfyRjbMNDPzGuJWfykYo/ X-Received: by 2002:a05:622a:348:b0:466:9ab3:c2c7 with SMTP id d75a77b69052e-46e5b7e7e13mr297667141cf.14.1737973661221; Mon, 27 Jan 2025 02:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737973661; cv=none; d=google.com; s=arc-20240605; b=fmS+YddlojaZGiK6RGYsRHwmauStXHGNHAYa6NUaMTGxHJNbasszCC/ZL7q2L063JZ QYICHvSiSJPdr+zbYAnUp5F5OtK+a16ms/t70XpPAHLFCXR4V11SlDWZ1xpSQ8WREGbM xSlduAwvJfY7AHwIfyHUGDsS3cZHtazhpDq8pQsqyVPeZD5bi8pU2KsPiomQCCBdCeDq 72o3UUAfIOe+FzL3JbWin3LPhCO5TXjdnz89xUD7Wu6FONDFXgZ2aL2h8psRrrVrn3YU tM1Ols+AJjL6edLwzday5vjbV3SgDPb0IoptYZWuR4ko9y2FPErGN6g69xUUBMUJOk+z qRfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=HWdyQXqewKLw4j1QduA+K9zB9k1/pnG1qDE+3bxWVJA=; fh=G3zkgtM0+U9rHQHdLuIT+YnPlKRaM6qSFCr7Ftnx4LQ=; b=EHuBrMAlskw3itOTFINOx42Sje+Wjiappjm95nN1Ayk36QwE1Svk36BwM/F3GTOAwV Vi8LWxt1dQ4vgaxDWal4hUIUNvU2KZFHOjTExT/Ij6UgeLCLybATmDfzYqmyk1kpDmti C8cDPDXr9yYhz2aFsi3IpxULFV8BOpQDO+bR62mlPw17+rwZ1eKcjc5X9BtXYqv3+1zM agEg4BOtSrpb466WeuE8YGU4DD/nclX36136KxJPXsQCO0IbrW9uAarxPpKN2bxCQnNX wkF8EZ4abGCJMtarOTRrL8YHMrSRBHdELRRY93f22f7J75OLSlVK1t8pPRSV1ukgQiav gJAw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cU+f9Dak; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-46e66ba64c6si101803691cf.514.2025.01.27.02.27.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jan 2025 02:27:41 -0800 (PST) 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=cU+f9Dak; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tcMK3-0001bo-K4; Mon, 27 Jan 2025 05:26:27 -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 1tcMK2-0001bY-7G for qemu-devel@nongnu.org; Mon, 27 Jan 2025 05:26:26 -0500 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 1tcMK0-0001vO-3t for qemu-devel@nongnu.org; Mon, 27 Jan 2025 05:26:25 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3862d16b4f5so2536555f8f.0 for ; Mon, 27 Jan 2025 02:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737973582; x=1738578382; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HWdyQXqewKLw4j1QduA+K9zB9k1/pnG1qDE+3bxWVJA=; b=cU+f9Dak2Krs75maVrhawqIxoT6QGZtdh2MjzBnpTANVrjdwq+Remj6O6W49Jo10mQ 5U88DhskjsYoBRoeVQ1IoqthMTQOobZo36upMdHjLAOX09FRLubPCb0reG39bBctoDLf CaiqDToh2St7Oy3E31qUqvUcTIQopEvi7kQw7U+xQq2B/6x+c/rfob6MD93ws+at+klk BDuNjkFW/iQEA0bist/FycsklNuACFOAW0t4+3ihDAs2EgxWj1TzlMEm1iPtmJAxInZD ImJUNZplWflnOf9kGNb8jffwp4SP0a5ZAeJUD1AjzHVh4m5z0V2e7XWHlYFEjRvjkv0k RG2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737973582; x=1738578382; 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=HWdyQXqewKLw4j1QduA+K9zB9k1/pnG1qDE+3bxWVJA=; b=Nd4kXkk9mgwKPL/feOn52CXr0pzZilprm+ij6TyrZr77KC2ZA5JoYsGXQt5YNarUIp 7kVoyLCRq3yx2SBAENqZbAiRLEMZDlfggI9+dppeuGNd0h0kZ0RV5ARtZ1tYftDffNAN hs9SPckHfyAyUBrk6crUov7qIVlCXyLxm2IGDzO8JjNPWpR76aIg1uuMXekC3pHf+Hrn ayuTLrggrEPKwSusD8uED8C2ko8KoduWQYDz+2GKLb7e9hrZkz2SWCoRFRe2PjAIfl06 /USj/GGcs6qj473pLzUF8tiKa8NCMi0FRuUN1VFOTze+HdMKwBc9OVTZWEnsvI+nStIr MQ/Q== X-Gm-Message-State: AOJu0YwGX2aLT1+OXiPb5tR5PXNj06V/dWPE10Ww0dOYo12+o/viZv0g dbjsnguCMO/FSbi/s/TYuOnB3De0E+tZJCE1tuKaqcnsZTwyp9NALOLkx/9GZlQtGjWmJyJZEty thNw= X-Gm-Gg: ASbGnctk0DQ7VvW6vdOzS4mItAytyjgI1uERqmsbG0kb11vF00FTp4CfeySb/zZfGDF 7AS1O+b8vZWpjatko1oA6w+Na4kYy6zjvtQ4yt3pwcBFgDD18D9Un9qdhEUG4cP32Y/k0NRPC8E wWwHr6o0cXk8lp01xdQ4mFt6gYKwV443UhvdUIYsJBLIuGFk8Dr3Hd8mGIbpKsWYh18oS5iT1Rc WTqevLvzbNhQCQeHDeorMWHlreyGIx47AQp5VGVaVyOdRJy8ad0MSxR47t86RAs9uszZ7vYEZDa tdxIJtQbEYPpfELM9FvtzXadugDR2VF35kH+4L6y9mHjIEm9CKhAa+I= X-Received: by 2002:a05:6000:1846:b0:385:df17:2148 with SMTP id ffacd0b85a97d-38c2b7c1810mr9685323f8f.20.1737973581959; Mon, 27 Jan 2025 02:26:21 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a176538sm10443441f8f.8.2025.01.27.02.26.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Jan 2025 02:26:21 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Richard Henderson , Harsh Prateek Bora , qemu-ppc@nongnu.org, Nicholas Piggin , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 00/15] target/ppc: Move TCG code from excp_helper.c to tcg-excp_helper.c Date: Mon, 27 Jan 2025 11:26:04 +0100 Message-ID: <20250127102620.39159-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@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=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-bounces+patch=linaro.org@nongnu.org Since v1: - Keep ppc_tcg_hv_emu() within TARGET_PPC64 (patch #10) Hi, This series is a simply a cleanup restricting TCG specific exception-related code to TCG, by moving code to a new unit named 'tcg-excp_helper.c'. I ended doing it as a preliminary cleanup for the "Extract TCG state from CPUState". Diffstat shows 1K lines moved, but the patches are trivial to review using 'git-diff --color-moved=dimmed-zebra' option. Branch published as: https://gitlab.com/philmd/qemu/-/tree/ppc_excp_extract_tcg Regards, Phil. Philippe Mathieu-Daudé (15): hw/ppc/spapr: Restrict CONFER hypercall to TCG hw/ppc/spapr: Restrict part of PAGE_INIT hypercall to TCG target/ppc: Make ppc_ldl_code() declaration public target/ppc: Move TCG specific exception handlers to tcg-excp_helper.c target/ppc: Move ppc_ldl_code() to tcg-excp_helper.c target/ppc: Ensure powerpc_checkstop() is only called under TCG target/ppc: Restrict powerpc_checkstop() to TCG target/ppc: Remove raise_exception_ra() target/ppc: Restrict exception helpers to TCG target/ppc: Restrict ppc_tcg_hv_emu() to TCG target/ppc: Restrict various common helpers to TCG target/ppc: Fix style in excp_helper.c target/ppc: Make powerpc_excp() prototype public target/ppc: Restrict ATTN / SCV / PMINSN helpers to TCG target/ppc: Restrict various system helpers to TCG target/ppc/cpu.h | 5 - target/ppc/internal.h | 11 +- hw/ppc/spapr_hcall.c | 6 +- target/ppc/excp_helper.c | 943 +---------------------------------- target/ppc/tcg-excp_helper.c | 924 ++++++++++++++++++++++++++++++++++ target/ppc/meson.build | 1 + 6 files changed, 955 insertions(+), 935 deletions(-) create mode 100644 target/ppc/tcg-excp_helper.c