From patchwork Wed Apr 2 21:02:45 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: 877691 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp2960463wrs; Wed, 2 Apr 2025 14:05:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUJy5eE8p+xPcyY8aJqwuVKUk7REObzgYNKDfKV0WUHcePo6dZ+DXEYvdYqMcDPYec/QTKuhQ==@linaro.org X-Google-Smtp-Source: AGHT+IGy/p8D05ow1qXaSmKmpwSowJh8h+HAKS88ZfK5HGA77bZt8ZyazBI+WhTPk6yrPeaSfb89 X-Received: by 2002:a05:6122:c88:b0:520:63e6:79d1 with SMTP id 71dfb90a1353d-5274cfb6a91mr3096115e0c.10.1743627907623; Wed, 02 Apr 2025 14:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743627907; cv=none; d=google.com; s=arc-20240605; b=DJdre+a/yHygSVzWbzRAxtoUDG/FoZqlUP0dqitbS4icW0TWRD5HXLd2V3u5n8TKeL 5qW7frKsd4B02m3Kl6+RnB1YAz8K1z6VOKKrV9pHlRfbwIDHNnyIX3vDn07bfz/hcQDq re7usFjVllTUn12XZDZImt8s0LcLMocfyGfETdnlePNYgh5C2Cj77iw2VU9w+tQJxhzu 9BHSevY3pFbWwD77PmVGaQf9/IHVdGCl4nMl1xyTfG9nGCD7/wrSRzJLCVybEAHMqLUN 7EO2rQ0myzW566lb18pGIsjIGgIXrp4eOkYssnkLCAU2yxaWP/m849yNINdn9ksOjbsq O8qQ== 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:to:from:dkim-signature; bh=d0fKFBon4pB7dc6VUmLW6/oZNCtsLDUu6Wgh2bN2ZF4=; fh=PiS90RxV1FQXyJHW3iP51TdYoGqjnYmM8oDHKts88wA=; b=Fa0nnAcRbpgqemitD4X/szGjAKXIMsbuqMcNyQnnKm41UkFA6fEIKNF7d+VJSUZcVN j4Mi15SBZUGAlc9TT+JyIPZ0majmvjGGxWJ2BJQ5TKC/aG4K5M2fAFyelD3JfKR4ZYUo o+TJWVIyrddfgOphP5yDGb+aRwLkKmfpzsJxV9quIDXJCv7uhT4zA03dBk9CBxnoksz2 6u3yzcp5ShhidpZ2OuKSdthjieOq1mgmsCcydfIoMGHpakqaY5YauWFNLGK+mc2SQoSK 83xl9leSHigPvuuTUbZDur0Lk4JLiJ25vuS4qoZiqA7XjR/tKvMrbJRUGNcH0b/Lyzp1 4/tQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l9/KCFo9"; 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 71dfb90a1353d-5260eb132a5si3523729e0c.245.2025.04.02.14.05.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Apr 2025 14:05:07 -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="l9/KCFo9"; 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 1u05Fa-0004Fj-1b; Wed, 02 Apr 2025 17:03:55 -0400 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 1u05FH-0004EV-V5 for qemu-devel@nongnu.org; Wed, 02 Apr 2025 17:03:42 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u05FF-0005rd-Jt for qemu-devel@nongnu.org; Wed, 02 Apr 2025 17:03:35 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4394036c0efso1127735e9.2 for ; Wed, 02 Apr 2025 14:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743627811; x=1744232611; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=d0fKFBon4pB7dc6VUmLW6/oZNCtsLDUu6Wgh2bN2ZF4=; b=l9/KCFo9lTjUGXkC0qmw90k9ashJKGDAJfGOaU7vyDNPy4k0suWbrI1E0ERKBIRKye p736CL/gHoWnJXCEPVjXRoDSVyziraSAi8Z7G6QecdjvPNQgEg0Xxmm4SNFqSlfKUUJI Q6cT+1pLObBArB9kvSUXpQmEzq4ZcN2JZyupqHW5wNA8T3bIgi9gCuyG6WZU4LZ8QCEk 0BvHXQ+MUkGHabE8iCfqT9YLvR6vSYGDloYeTvsinvSFkKnPOLLL41FrBLHhk1NZGDtC gDgcmNVmpRguaUX1jbxKm1kJGxY3/rV/oGWjVrlCxUMkN9nr0YjqwaRKytGev025QP+4 fqyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743627811; x=1744232611; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=d0fKFBon4pB7dc6VUmLW6/oZNCtsLDUu6Wgh2bN2ZF4=; b=QDRG3DEt+5mm0M62FP+ll4rH6l0LOodeinEaU8jyfsZbY39biGeE2arUbmsinUIvmO Wp2zRG6CpfhZSe4wK4geXjWVfTnGS3LJj4ycUQCKkbHjBt3y3c9urDi3mQiK/VWlCZQP TOVhb+Ty2h0XM169KCYdoauEGY5mBSVhAcl/tazTBevkCR6vRQEUiK6+c6uDuUcNVFiH 7nYwzd5DRaPMG54fSU8FfMgxvMMbzRHEFfd9jc7OSMAJTzmjDekvI5sG2sF8YCT4jJSQ qH4OLZ/oITEEr2fLYf5CC1eHrVEw4drNAZYR3zB0MYIRXBDdNgQ80rCpyOdSE33ap4Br OPRg== X-Forwarded-Encrypted: i=1; AJvYcCUGK1mRcY0BrrPaBtAJzR/bL55BBvwrC6mnuIdurFfhX6pe4Jxwju+hcL65WzXrMKVFnyrfdybOKD23@nongnu.org X-Gm-Message-State: AOJu0YxCbiIQSzRLDcdJOa0yj9wAyFjYidNXzgPGDk3kniQykGuSo/Bs OWSeonnamcIg1AAxI9rC5ZsqnMP1Eygd41tWrS5ocubpjC0/321ZBnwVNWNMOjX6W12ykkO59gR J X-Gm-Gg: ASbGnct4xujHKOyOY6f4ZXZHZkGSVUUVOk96Nv0VHFMELdpkBrX5cA2juvKM+Rpkhcp 9fTdyGq8sEXH6WxBobJSMW6wf3c9ofj5XB86gUYpBNGafTn8A7lMHb0tNcSuIAg3XtcXT/wb9U0 ZaL119N6agEqvh7BOHJzBdc8m6MCKG0wN5mrGby5N5UN9KhSV0j/96PG4QXal+JxYQjEkH97x1P /A2NKdV/Cl1WpHgam4yrKlsTXfcUczqgysjVpJQGiGA3yj9gV7JBK9pA3LlTeR3dEse3TrTg/E2 gsFUU2daV+FjnPv0WoLN2P7ovMtPrhJYGENTvw86fcwIO23KMhkxJFuQfJ3vKnbjtbOo+9RoTmd gQRm4Ebvk57h9nqc/9jU= X-Received: by 2002:a05:600c:296:b0:43e:afca:808f with SMTP id 5b1f17b1804b1-43eafca80a3mr49744465e9.31.1743627810658; Wed, 02 Apr 2025 14:03:30 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c0b663617sm18106351f8f.34.2025.04.02.14.03.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 02 Apr 2025 14:03:30 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Richard Henderson , qemu-devel@nongnu.org Subject: [PATCH-for-10.1 00/43] tcg: philmd's queue Date: Wed, 2 Apr 2025 23:02:45 +0200 Message-ID: <20250402210328.52897-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::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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 Hi Richard, Here is my patch queue based on your tcg-next tree. Missing review: 38, 41, 43 (all news) Thanks, Phil. Philippe Mathieu-Daudé (43): tcg: Declare TARGET_INSN_START_EXTRA_WORDS in 'cpu-param.h' tcg: Always define TARGET_INSN_START_EXTRA_WORDS hw/core/cpu: Update CPUClass::mmu_index docstring accel/tcg: Introduce TCGCPUOps::mmu_index() callback target/alpha: Restrict SoftMMU mmu_index() to TCG target/arm: Restrict SoftMMU mmu_index() to TCG target/avr: Restrict SoftMMU mmu_index() to TCG target/hppa: Restrict SoftMMU mmu_index() to TCG target/i386: Remove unused cpu_(ldub,stb)_kernel macros target/i386: Restrict cpu_mmu_index_kernel() to TCG target/i386: Restrict SoftMMU mmu_index() to TCG target/loongarch: Restrict SoftMMU mmu_index() to TCG target/m68k: Restrict SoftMMU mmu_index() to TCG target/microblaze: Restrict SoftMMU mmu_index() to TCG target/mips: Restrict SoftMMU mmu_index() to TCG target/openrisc: Restrict SoftMMU mmu_index() to TCG target/ppc: Restrict SoftMMU mmu_index() to TCG target/riscv: Restrict SoftMMU mmu_index() to TCG target/rx: Fix copy/paste typo (riscv -> rx) target/rx: Restrict SoftMMU mmu_index() to TCG target/s390x: Restrict SoftMMU mmu_index() to TCG target/sh4: Restrict SoftMMU mmu_index() to TCG target/sparc: Restrict SoftMMU mmu_index() to TCG target/tricore: Restrict SoftMMU mmu_index() to TCG target/xtensa: Restrict SoftMMU mmu_index() to TCG hw/core/cpu: Remove CPUClass::mmu_index() exec: Restrict cpu-mmu-index.h to accel/tcg/ exec: Restrict 'cpu-ldst-common.h' to accel/tcg/ exec: Restrict 'cpu_ldst.h' to accel/tcg/ exec: Do not include 'accel/tcg/cpu-ldst.h' in 'exec-all.h' tcg: Always define TCG_GUEST_DEFAULT_MO tcg: Simplify tcg_req_mo() macro tcg: Define guest_default_memory_order in TCGCPUOps tcg: Remove use of TCG_GUEST_DEFAULT_MO in tb_gen_code() tcg: Propagate CPUState argument to cpu_req_mo() tcg: Have tcg_req_mo() use TCGCPUOps::guest_default_memory_order tcg: Remove the TCG_GUEST_DEFAULT_MO definition globally tcg: Move cpu_req_mo() macro to target-agnostic 'backend-ldst.h' tcg: Move qemu_tcg_mttcg_enabled() to 'system/tcg.h' tcg: Convert TCGState::mttcg_enabled to TriState tcg: Factor mttcg_init() out tcg: Convert TARGET_SUPPORTS_MTTCG to TCGCPUOps::mttcg_supported field target/arm: Update comment around cpu_untagged_addr() docs/devel/multi-thread-tcg.rst | 6 +- configs/targets/aarch64-softmmu.mak | 1 - configs/targets/alpha-softmmu.mak | 1 - configs/targets/arm-softmmu.mak | 1 - configs/targets/hppa-softmmu.mak | 1 - configs/targets/i386-softmmu.mak | 1 - configs/targets/loongarch64-softmmu.mak | 1 - configs/targets/microblaze-softmmu.mak | 1 - configs/targets/microblazeel-softmmu.mak | 1 - configs/targets/mips-softmmu.mak | 1 - configs/targets/mipsel-softmmu.mak | 1 - configs/targets/or1k-softmmu.mak | 1 - configs/targets/ppc64-softmmu.mak | 1 - configs/targets/riscv32-softmmu.mak | 1 - configs/targets/riscv64-softmmu.mak | 1 - configs/targets/s390x-softmmu.mak | 1 - configs/targets/sparc-softmmu.mak | 1 - configs/targets/sparc64-softmmu.mak | 1 - configs/targets/x86_64-softmmu.mak | 1 - configs/targets/xtensa-softmmu.mak | 1 - configs/targets/xtensaeb-softmmu.mak | 1 - accel/tcg/backend-ldst.h | 41 +++++++++ accel/tcg/internal-common.h | 27 ++++++ accel/tcg/internal-target.h | 35 -------- bsd-user/qemu.h | 2 +- include/{exec => accel/tcg}/cpu-ldst-common.h | 6 +- .../{exec/cpu_ldst.h => accel/tcg/cpu-ldst.h} | 10 +-- include/{exec => accel/tcg}/cpu-mmu-index.h | 9 +- include/accel/tcg/cpu-ops.h | 19 +++++ include/exec/exec-all.h | 3 - include/exec/poison.h | 1 - include/hw/core/cpu.h | 12 --- include/system/tcg.h | 8 ++ include/tcg/insn-start-words.h | 4 - include/tcg/tcg-op.h | 2 +- linux-user/qemu.h | 2 +- target/alpha/cpu-param.h | 3 +- target/arm/cpu-param.h | 8 +- target/arm/cpu.h | 8 +- target/arm/internals.h | 1 + target/arm/tcg/sve_ldst_internal.h | 2 +- target/avr/cpu-param.h | 2 +- target/hexagon/cpu-param.h | 2 + target/hppa/cpu-param.h | 8 +- target/hppa/cpu.h | 2 - target/i386/cpu-param.h | 3 +- target/i386/cpu.h | 5 -- target/i386/tcg/seg_helper.h | 10 +-- target/i386/tcg/tcg-cpu.h | 2 + target/loongarch/cpu-param.h | 2 +- target/m68k/cpu-param.h | 2 + target/m68k/cpu.h | 2 - target/microblaze/cpu-param.h | 3 +- target/microblaze/cpu.h | 2 - target/mips/cpu-param.h | 2 +- target/mips/cpu.h | 2 - target/openrisc/cpu-param.h | 2 +- target/openrisc/cpu.h | 2 - target/ppc/cpu-param.h | 2 +- target/riscv/cpu-param.h | 10 ++- target/riscv/cpu.h | 6 -- target/rx/cpu-param.h | 2 + target/s390x/cpu-param.h | 6 +- target/s390x/cpu.h | 2 - target/sh4/cpu-param.h | 2 + target/sh4/cpu.h | 2 - target/sparc/cpu-param.h | 23 +---- target/sparc/cpu.h | 1 - target/tricore/cpu-param.h | 2 + target/xtensa/cpu-param.h | 3 +- accel/tcg/cpu-exec.c | 2 + accel/tcg/cputlb.c | 23 ++--- accel/tcg/tcg-all.c | 84 +++++++++++-------- accel/tcg/translate-all.c | 6 +- accel/tcg/translator.c | 4 +- accel/tcg/user-exec.c | 23 ++--- semihosting/uaccess.c | 2 +- target/alpha/cpu.c | 6 +- target/alpha/mem_helper.c | 2 +- target/arm/cpu.c | 17 ++-- target/arm/gdbstub64.c | 2 +- target/arm/tcg/cpu-v7m.c | 5 ++ target/arm/tcg/helper-a64.c | 2 +- target/arm/tcg/m_helper.c | 2 +- target/arm/tcg/mte_helper.c | 2 +- target/arm/tcg/mve_helper.c | 2 +- target/arm/tcg/op_helper.c | 2 +- target/arm/tcg/pauth_helper.c | 2 +- target/arm/tcg/sme_helper.c | 2 +- target/arm/tcg/sve_helper.c | 1 + target/avr/cpu.c | 4 +- target/avr/helper.c | 2 +- target/hexagon/cpu.c | 3 + target/hexagon/op_helper.c | 2 +- target/hexagon/translate.c | 2 +- target/hppa/cpu.c | 11 ++- target/hppa/mem_helper.c | 2 +- target/hppa/op_helper.c | 2 +- target/i386/cpu.c | 34 -------- target/i386/tcg/access.c | 2 +- target/i386/tcg/fpu_helper.c | 2 +- target/i386/tcg/mem_helper.c | 2 +- target/i386/tcg/mpx_helper.c | 2 +- target/i386/tcg/seg_helper.c | 19 ++++- target/i386/tcg/system/excp_helper.c | 2 +- target/i386/tcg/system/misc_helper.c | 2 +- target/i386/tcg/system/seg_helper.c | 2 +- target/i386/tcg/system/svm_helper.c | 2 +- target/i386/tcg/tcg-cpu.c | 23 +++++ target/i386/tcg/translate.c | 2 +- target/i386/tcg/user/seg_helper.c | 2 +- target/loongarch/cpu.c | 7 +- target/loongarch/cpu_helper.c | 2 +- target/loongarch/tcg/csr_helper.c | 2 +- target/loongarch/tcg/fpu_helper.c | 2 +- target/loongarch/tcg/iocsr_helper.c | 2 +- target/loongarch/tcg/op_helper.c | 2 +- target/loongarch/tcg/tlb_helper.c | 2 +- target/m68k/cpu.c | 6 +- target/m68k/fpu_helper.c | 2 +- target/m68k/op_helper.c | 2 +- target/microblaze/cpu.c | 8 +- target/microblaze/helper.c | 2 +- target/microblaze/mmu.c | 2 +- target/microblaze/op_helper.c | 2 +- target/microblaze/translate.c | 2 +- target/mips/cpu.c | 5 +- target/mips/tcg/ldst_helper.c | 2 +- target/mips/tcg/msa_helper.c | 2 +- target/mips/tcg/system/tlb_helper.c | 2 +- target/openrisc/cpu.c | 5 +- target/openrisc/translate.c | 2 +- target/ppc/cpu_init.c | 5 +- target/ppc/mem_helper.c | 2 +- target/ppc/mmu_helper.c | 2 +- target/ppc/tcg-excp_helper.c | 2 +- target/riscv/cpu.c | 6 -- target/riscv/op_helper.c | 2 +- target/riscv/tcg/tcg-cpu.c | 10 +++ target/riscv/vector_helper.c | 2 +- target/riscv/zce_helper.c | 2 +- target/rx/cpu.c | 8 +- target/rx/helper.c | 2 +- target/rx/op_helper.c | 2 +- target/s390x/cpu.c | 9 +- target/s390x/tcg/crypto_helper.c | 2 +- target/s390x/tcg/int_helper.c | 2 +- target/s390x/tcg/mem_helper.c | 2 +- target/s390x/tcg/misc_helper.c | 2 +- target/s390x/tcg/vec_helper.c | 2 +- target/sh4/cpu.c | 6 +- target/sh4/op_helper.c | 2 +- target/sparc/cpu.c | 28 ++++++- target/sparc/int32_helper.c | 2 +- target/sparc/ldst_helper.c | 2 +- target/sparc/mmu_helper.c | 2 +- target/tricore/cpu.c | 5 +- target/tricore/helper.c | 2 +- target/tricore/op_helper.c | 2 +- target/tricore/translate.c | 2 +- target/xtensa/cpu.c | 6 +- target/xtensa/mmu_helper.c | 2 +- tcg/region.c | 4 +- 163 files changed, 472 insertions(+), 378 deletions(-) create mode 100644 accel/tcg/backend-ldst.h rename include/{exec => accel/tcg}/cpu-ldst-common.h (97%) rename include/{exec/cpu_ldst.h => accel/tcg/cpu-ldst.h} (99%) rename include/{exec => accel/tcg}/cpu-mmu-index.h (78%)