From patchwork Fri Mar 7 18:56:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 871231 Delivered-To: patch@linaro.org Received: by 2002:a5d:64c8:0:b0:38f:210b:807b with SMTP id f8csp915473wri; Fri, 7 Mar 2025 10:57:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVZp9yLBfqjA9D+MJUeV2WZ+FZ6zZ6j4NwXToIG7Yo2HvlNd3gg+cWQ2oURciMbvyGdc+w7QA==@linaro.org X-Google-Smtp-Source: AGHT+IHkeqMu/+yPSr59BH0D98a7RbR8vdtyNyP346KYzxPwiUlUAA+uuY8xRteGTRn/OIzIyV43 X-Received: by 2002:a05:6214:ac7:b0:6e4:540b:5352 with SMTP id 6a1803df08f44-6e907d3b5e5mr10560176d6.16.1741373848784; Fri, 07 Mar 2025 10:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741373848; cv=none; d=google.com; s=arc-20240605; b=e/7WH4Qd4ClNpnpEDL8Sx+QHhTiQGpxn9rF+9SVsndlGjdx6ob8jgS9kY52wX5Owrb 9nL8sGaVoPDhzBfnGCVx7K2K4FZ30dpM6q57+yfmY7ajZ/3cJxKIJvQObld4hvS9kYDU Tc8tyjEDjYsjkunhDTi8OBi9dmb2LcrCXPWZXuHGZ1j9713fdG7eD1sSUUEkaJhcXR9m D9jkl4lmt/SEIifVH4rVmvSJhIuGvqVjuqSEePo2m0PHmC3jnEKTbzsFmgvAMkAGVXxn 7CgK+gse0+g78Iy8nFD4Uj9g2VSCPDcdep9sDx3/JBeaKd3EHljdVr4JCSjfbPoBVJ8v /IFQ== 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=2S1HL/uh8HJg/YkrhsXfs/r9NeCmk67SG0CfqhKI+fA=; fh=ycigHkwOPieh2u5PmcA89sNk/qPD1ZkdDlL8Mchfvw8=; b=YxirYiIyqXDKEPOc+KDKImcAKdv14iwoHBXizSQOvpxcvGKof4wsRdSJY2NsUnpiZg VsJhzUMdSfx0I9K7lhe6IedceK6/cyImU43dbTbkLxFmslqKcQNUqaten+km3sOCU7R0 GBnw9NOA6haZ9ORn90ybwnCIwR05anzjfsYw+nB+zCpNsJ0HudHTH3eObPSdy7BuDjwF XHdu+mKBmN/suZcZkHW2qfVnk4RQyeqOlCTfjTK359jDL1DfbAAyUirWA1S5COu08Xv1 7Mc0eaxY9r9Cm3l2Zc8Kc/Q5ALvIoPdghP18NG2XBaYa00mR6NHUAYRcJ6+QkUqroz5k D3aQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IbCpEvh+; 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 6a1803df08f44-6e8f717549esi39706826d6.319.2025.03.07.10.57.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 10:57:28 -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=IbCpEvh+; 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 1tqcsP-0007RN-9z; Fri, 07 Mar 2025 13:56:53 -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 1tqcsN-0007Qa-1D for qemu-devel@nongnu.org; Fri, 07 Mar 2025 13:56:51 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqcsL-0007kv-1W for qemu-devel@nongnu.org; Fri, 07 Mar 2025 13:56:50 -0500 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2ff85fec403so1380656a91.1 for ; Fri, 07 Mar 2025 10:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741373807; x=1741978607; 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=2S1HL/uh8HJg/YkrhsXfs/r9NeCmk67SG0CfqhKI+fA=; b=IbCpEvh++VMlJgmqddhzobnwkjovM4aZYpaGuqyncZidSg7W/F6eao4TeMWrZfR2H9 iuoQjnq02wpNmSMeStyQA27t8YhB74KpxNQBlIzl83M7iBZZ4I8EcSGFP6rnldoNVNGT WBrWqgKvLzJh5C7aG/wZT978svnqmvvLxR1R9m+8yNsnEACjdnkZdaBdqCqcT3IDwze4 iekg3KwVi3DeBwnFLTjiLuPYfo/LcazFJkHmkk4iy+ulqPo+e2RwFxx+B8MsL8N8jVoD P21Da4s98jY8oluRTYhirptFRXg/Md3EvEEZEw/KqW82uNAjQVAQIqcF8pyR1V5ipFEI p+Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741373807; x=1741978607; 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=2S1HL/uh8HJg/YkrhsXfs/r9NeCmk67SG0CfqhKI+fA=; b=qqNvrfLX9U90G1fL9hq2255EGMmT8ZP4iX4TJ3DDv87DLR17fIEr9yVjSqibtMAKgI C/TOdZiA+LIuV4UvO//ZMDcs5ONcAyVxZQIujVbhP/EgHfUcddq7EyV/oeg4o6V7JYQf riGxNwPsFuYXLwdEvPp2IPWIjhEakG1f9szACeriMq3YLyYAJsNe1goBfoKqz8wxpYep 1/fsy5MfAQHNogqfiJ/MaAK+PagFqPk5kbAN/iXD49CaFQiqeMF3DK9pmsT5EkrPFvgj T3LX9+CIt6cwNhZ++zWdzD1AUK1pVnfsAJJMcNs/WXHf5HtwJVyI26GOOb9ygenxG9WR ll2Q== X-Gm-Message-State: AOJu0YxYpe9HqSompCHScNgwfsvO4hKSZGcOX22Dfnk7NtgX4Gua7tEP 8bdSLcxmRPvtKGz0YOQGSlukBMTAsT0TrX5WUZ0VIj8a09i9mK2sHOY35nKd7pTrJauk+V0QdaI U X-Gm-Gg: ASbGncudb6yuOSHWcAYpG0US7ANyfpoN0DLChnPqLnsD5OWLOpZT/npCtYpwdY/8HF/ 1jjb+5OAwCyZtw6rNkkQx76qRs3mITSQF7VkxRatZohUK8vra+X5eMNu1dM4hPy4J8CK+CzSmzM aZHfD4egKeleNLPzzMH3RUHqSDqLg7EPKkHNcncflSHiX9M/QV2PR8r2VqV4w14pYG6gyZyGnYT GOh+HyTrOr2m88Y2jeWa7lcH/QSwWBb2NggQls2KqSATfFHKlLSYrTAp1+YhsNDQEUcWKBafGM0 hKFoheH8RuJEcICdcGaBaYhRq2GKGi6SRQeKgIqI6GYQupfCsAeS2ZpdcLcE69HT4lCXi+/l/7C K X-Received: by 2002:a17:90b:4cc5:b0:2ff:71d2:ee8f with SMTP id 98e67ed59e1d1-2ffbc1c8aa0mr1001164a91.13.1741373807316; Fri, 07 Mar 2025 10:56:47 -0800 (PST) Received: from stoup.. (174-21-74-48.tukw.qwest.net. [174.21.74.48]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ff693534f8sm3391917a91.17.2025.03.07.10.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 10:56:46 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org Subject: [PATCH 00/16] accel/tcg: Compile more files once Date: Fri, 7 Mar 2025 10:56:28 -0800 Message-ID: <20250307185645.970034-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Take care of some easy cases in accel/tcg/. >From here it starts getting harder. :-) r~ Philippe Mathieu-Daudé (6): exec: Declare tlb_reset_dirty*() in 'exec/cputlb.h' exec: Declare tlb_set_page_full() in 'exec/cputlb.h' exec: Declare tlb_set_page_with_attrs() in 'exec/cputlb.h' exec: Declare tlb_set_page() in 'exec/cputlb.h' exec: Declare tlb_hit*() in 'exec/cputlb.h' exec: Declare tlb_flush*() in 'exec/cputlb.h' Richard Henderson (10): include/exec: Split out exec/cpu-interrupt.h accel/tcg: Compile watchpoint.c once system: Build watchpoint.c once accel/tcg: Build tcg-accel-ops.c once accel/tcg: Build tcg-accel-ops-icount.c once accel/tcg: Build tcg-accel-ops-rr.c once accel/tcg: Build tcg-accel-ops-mttcg.c once include/exec: Split out helper-getpc.h accel/tcg: Build tcg-runtime.c once accel/tcg: Build tcg-runtime-gvec.c once accel/tcg/internal-common.h | 2 + accel/tcg/tb-internal.h | 2 - include/exec/cpu-all.h | 76 +------- include/exec/cpu-interrupt.h | 70 +++++++ include/exec/cputlb.h | 263 ++++++++++++++++++++++++++- include/exec/exec-all.h | 262 +------------------------- include/exec/helper-getpc.h | 31 ++++ include/exec/poison.h | 13 -- include/exec/ram_addr.h | 1 + accel/tcg/cputlb.c | 23 +++ accel/tcg/tcg-accel-ops-icount.c | 2 +- accel/tcg/tcg-accel-ops-mttcg.c | 1 - accel/tcg/tcg-accel-ops-rr.c | 2 +- accel/tcg/tcg-accel-ops.c | 2 +- accel/tcg/tcg-runtime-gvec.c | 1 - accel/tcg/tcg-runtime.c | 8 +- accel/tcg/watchpoint.c | 5 +- cpu-target.c | 1 + hw/intc/armv7m_nvic.c | 2 +- hw/ppc/spapr_nested.c | 1 + hw/sh4/sh7750.c | 1 + system/physmem.c | 1 + system/watchpoint.c | 3 +- target/alpha/helper.c | 2 +- target/alpha/sys_helper.c | 2 +- target/arm/helper.c | 1 + target/arm/tcg/tlb-insns.c | 2 +- target/avr/helper.c | 2 +- target/hppa/mem_helper.c | 1 + target/i386/helper.c | 2 +- target/i386/machine.c | 2 +- target/i386/tcg/fpu_helper.c | 2 +- target/i386/tcg/misc_helper.c | 2 +- target/i386/tcg/system/excp_helper.c | 2 +- target/i386/tcg/system/misc_helper.c | 2 +- target/i386/tcg/system/svm_helper.c | 2 +- target/loongarch/tcg/csr_helper.c | 2 +- target/loongarch/tcg/tlb_helper.c | 1 + target/m68k/helper.c | 1 + target/microblaze/helper.c | 2 +- target/microblaze/mmu.c | 2 +- target/mips/system/cp0.c | 2 +- target/mips/tcg/system/cp0_helper.c | 2 +- target/mips/tcg/system/tlb_helper.c | 1 + target/openrisc/mmu.c | 2 +- target/openrisc/sys_helper.c | 1 + target/ppc/helper_regs.c | 2 +- target/ppc/misc_helper.c | 1 + target/ppc/mmu_helper.c | 1 + target/riscv/cpu_helper.c | 1 + target/riscv/csr.c | 1 + target/riscv/op_helper.c | 1 + target/riscv/pmp.c | 2 +- target/rx/cpu.c | 2 +- target/s390x/gdbstub.c | 2 +- target/s390x/sigp.c | 1 + target/s390x/tcg/excp_helper.c | 1 + target/s390x/tcg/mem_helper.c | 1 + target/s390x/tcg/misc_helper.c | 1 + target/sh4/helper.c | 1 + target/sparc/ldst_helper.c | 1 + target/sparc/mmu_helper.c | 2 +- target/tricore/helper.c | 2 +- target/xtensa/helper.c | 2 +- target/xtensa/mmu_helper.c | 1 + accel/tcg/meson.build | 14 +- system/meson.build | 2 +- 67 files changed, 450 insertions(+), 405 deletions(-) create mode 100644 include/exec/cpu-interrupt.h create mode 100644 include/exec/helper-getpc.h