From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B332C432BE for ; Tue, 31 Aug 2021 12:19:46 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E21860200 for ; Tue, 31 Aug 2021 12:19:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1E21860200 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:53516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL2jx-0007dQ-9e for qemu-devel@archiver.kernel.org; Tue, 31 Aug 2021 08:19:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL2ga-0003kV-HK for qemu-devel@nongnu.org; Tue, 31 Aug 2021 08:16:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:26441) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL2gV-00057q-IW for qemu-devel@nongnu.org; Tue, 31 Aug 2021 08:16:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630412170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lZS4DXMXSOjtCM69VzWdjvjuCGX5Br/qVVvKVZTVxAA=; b=AJFU+WfDYr3S0JGOl2c+kF4lN/gIhSKoL5MqMo8CT8x/Hxdq79giPYKAGD2RTt52f4fCT2 3mjnWOUDcqstjTzF4q2XDzYNuzj5o2095DBMxyizVgljkSAmntFzJKw2VAhdLZEZ4RTKXu ke3lK/eyVVoq518MMp0c4Fexb67Nx3o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-13-NbqoTxYwMOSz1n-Y13nYiw-1; Tue, 31 Aug 2021 08:16:09 -0400 X-MC-Unique: NbqoTxYwMOSz1n-Y13nYiw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 52118185302A; Tue, 31 Aug 2021 12:16:04 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB1BC1001281; Tue, 31 Aug 2021 12:15:46 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 13FFA1800936; Tue, 31 Aug 2021 14:15:45 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 00/29] [RFC] build more i386 tcg code modular. Date: Tue, 31 Aug 2021 14:15:16 +0200 Message-Id: <20210831121545.2874233-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.129.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.391, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , "Michael S. Tsirkin" , Bin Meng , David Hildenbrand , Aleksandar Rikalo , Peter Xu , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Max Filippov , Alistair Francis , Gerd Hoffmann , "Edgar E. Iglesias" , Alexandre Iooss , Huacai Chen , Halil Pasic , Christian Borntraeger , Palmer Dabbelt , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Eduardo Habkost , Richard Henderson , Greg Kurz , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Stafford Horne , =?UTF-8?q?Alex=20Benn=C3=A9e?= , David Gibson , qemu-riscv@nongnu.org, Bastian Koppelmann , Cornelia Huck , Laurent Vivier , qemu-ppc@nongnu.org, Paolo Bonzini , Mahmoud Mandour , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This series moves a big pile of code from core qemu to the tcg module.=0D =0D To allow for more fine-grained patches the first patch disables modular=0D tcg and the last patch re-enables it. Alternatively we could move all=0D the build system changes (patches 4-8) to the end of the series and=0D squash them into a single patch. Not sure which is better ...=0D =0D The fundamental idea of this series is that any call from core qemu into=0D tcg gets routed through function pointers. This is simliar to the way=0D we handle the spice module (see ui/spice-module.c).=0D =0D Initially the function pointers are filled with stubs, when the tcg=0D module loads all function pointers are updated to point to the real=0D functions instead. One side effect of this is that compile-time stubs=0D will become runtime-stubs.=0D =0D Series overview:=0D 1 - disable modular tcg.=0D 2 =3D> 3 - misc small tweaks.=0D 4 =3D> 8 - build system changes.=0D 9 =3D> 21 - add generic tcg function pointers.=0D 22 =3D> 28 - add i386 tcg function pointers.=0D 29 - re-enable modular tcg.=0D =0D take care,=0D Gerd=0D =0D Gerd Hoffmann (29):=0D build: temporarily disable modular tcg=0D plugins: register qemu_plugin_opts using opts_init()=0D tcg/module: move hmp.c to module=0D tcg/module: move cputlb.c to module=0D tcg/module: move tcg_ss to module [accel/tcg]=0D tcg/module: move tcg_ss to module [tcg]=0D tcg/module: move files to module [target/i386/tcg]=0D move cpu-exec-common.c from tcg module to core qemu [accel/tcg]=0D tcg/module: add tcg-module.[ch] infrastructure=0D tcg_funcs: Add tlb_flush to TCGModuleOps=0D tcg_funcs: Add tlb_flush_page to TCGModuleOps=0D tcg_funcs: Add tlb_reset_dirty to TCGModuleOps=0D tcg_funcs: Add tlb_plugin_lookup to TCGModuleOps=0D tcg_funcs:Add tcg_exec_{realizefn,unrealizefn} to TCGModuleOps=0D tcg_funcs: Add tb_flush to TCGModuleOps=0D tcg: use tb_page_addr_t for tb_invalidate_phys_range()=0D tcg: drop tb_invalidate_phys_page_range()=0D tcg_funcs: Add tb_invalidate_phys_range to TCGModuleOps=0D tcg_funcs: Add tb_check_watchpoint to TCGModuleOps=0D tcg_funcs: Add cpu_restore_state to TCGModuleOps=0D tcg_funcs: Add curr_cflags to TCGModuleOps=0D tcg_i386_funcs: Add update_fp_status to TCGI386ModuleOps=0D tcg_i386_funcs: Add update_mxcsr_status to TCGI386ModuleOps=0D tcg_i386_funcs: Add update_mxcsr_from_sse_status to TCGI386ModuleOps=0D tcg_i386_funcs: Add x86_register_ferr_irq to TCGI386ModuleOps=0D tcg_i386_funcs: Add cpu_set_ignne to TCGI386ModuleOps=0D tcg_i386_funcs: Add cpu_x86_update_dr7 to TCGI386ModuleOps=0D tcg_i386_funcs: Add cpu_cc_compute_all to TCGI386ModuleOps=0D Revert "build: temporarily disable modular tcg"=0D =0D include/exec/cpu-all.h | 2 -=0D include/exec/exec-all.h | 16 ++------=0D include/exec/ram_addr.h | 2 -=0D include/exec/translate-all.h | 2 -=0D include/qemu/plugin.h | 7 ----=0D include/tcg/tcg-module-i386.h | 15 ++++++++=0D include/tcg/tcg-module.h | 24 ++++++++++++=0D target/i386/cpu.h | 17 ++------=0D accel/stubs/tcg-stub.c | 4 --=0D accel/tcg/cpu-exec-common.c | 10 ++++-=0D accel/tcg/cpu-exec.c | 15 ++++++--=0D accel/tcg/cputlb.c | 14 ++++++-=0D accel/tcg/tcg-module-i386.c | 33 ++++++++++++++++=0D accel/tcg/tcg-module.c | 60 +++++++++++++++++++++++++++++=0D accel/tcg/translate-all.c | 55 +++++++-------------------=0D cpu.c | 14 +++----=0D gdbstub.c | 4 +-=0D hw/i386/pc.c | 2 +-=0D hw/i386/pc_piix.c | 2 +-=0D hw/i386/pc_q35.c | 2 +-=0D hw/ppc/spapr_hcall.c | 2 +-=0D linux-user/main.c | 2 +-=0D linux-user/mmap.c | 8 ++--=0D linux-user/syscall.c | 4 +-=0D plugins/api.c | 4 +-=0D plugins/core.c | 2 +-=0D plugins/loader.c | 11 +++++-=0D softmmu/physmem.c | 22 +++++------=0D softmmu/vl.c | 1 -=0D target/alpha/helper.c | 2 +-=0D target/alpha/mem_helper.c | 2 +-=0D target/alpha/sys_helper.c | 2 +-=0D target/arm/helper.c | 26 ++++++-------=0D target/arm/op_helper.c | 2 +-=0D target/arm/tlb_helper.c | 8 ++--=0D target/cris/helper.c | 2 +-=0D target/i386/cpu-dump.c | 2 +-=0D target/i386/gdbstub.c | 2 +-=0D target/i386/helper.c | 10 ++---=0D target/i386/machine.c | 8 ++--=0D target/i386/tcg/cc_helper.c | 9 ++++-=0D target/i386/tcg/fpu_helper.c | 23 +++++++----=0D target/i386/tcg/int_helper.c | 8 ++--=0D target/i386/tcg/mem_helper.c | 8 ++--=0D target/i386/tcg/misc_helper.c | 4 +-=0D target/i386/tcg/seg_helper.c | 10 ++---=0D target/i386/tcg/sysemu/bpt_helper.c | 9 ++++-=0D target/i386/tcg/sysemu/fpu_helper.c | 12 +++++-=0D target/i386/tcg/sysemu/svm_helper.c | 2 +-=0D target/i386/tcg/tcg-stub.c | 25 ------------=0D target/m68k/op_helper.c | 6 +--=0D target/microblaze/helper.c | 2 +-=0D target/mips/sysemu/cp0.c | 2 +-=0D target/openrisc/sys_helper.c | 8 ++--=0D target/ppc/excp_helper.c | 2 +-=0D target/riscv/csr.c | 2 +-=0D target/s390x/gdbstub.c | 2 +-=0D target/s390x/sigp.c | 2 +-=0D target/s390x/tcg/excp_helper.c | 2 +-=0D target/tricore/op_helper.c | 2 +-=0D target/xtensa/helper.c | 6 +--=0D accel/tcg/meson.build | 24 ++++++++----=0D target/i386/tcg/meson.build | 7 +++-=0D target/i386/tcg/sysemu/meson.build | 5 ++-=0D tcg/meson.build | 2 +-=0D 65 files changed, 367 insertions(+), 239 deletions(-)=0D create mode 100644 include/tcg/tcg-module-i386.h=0D create mode 100644 include/tcg/tcg-module.h=0D create mode 100644 accel/tcg/tcg-module-i386.c=0D create mode 100644 accel/tcg/tcg-module.c=0D delete mode 100644 target/i386/tcg/tcg-stub.c=0D =0D --=20=0D 2.31.1=0D =0D From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mL2gb-0003oo-QH for mharc-qemu-riscv@gnu.org; Tue, 31 Aug 2021 08:16:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL2ga-0003k7-E2 for qemu-riscv@nongnu.org; Tue, 31 Aug 2021 08:16:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:40377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL2gV-00057u-LB for qemu-riscv@nongnu.org; Tue, 31 Aug 2021 08:16:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630412170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lZS4DXMXSOjtCM69VzWdjvjuCGX5Br/qVVvKVZTVxAA=; b=AJFU+WfDYr3S0JGOl2c+kF4lN/gIhSKoL5MqMo8CT8x/Hxdq79giPYKAGD2RTt52f4fCT2 3mjnWOUDcqstjTzF4q2XDzYNuzj5o2095DBMxyizVgljkSAmntFzJKw2VAhdLZEZ4RTKXu ke3lK/eyVVoq518MMp0c4Fexb67Nx3o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-13-NbqoTxYwMOSz1n-Y13nYiw-1; Tue, 31 Aug 2021 08:16:09 -0400 X-MC-Unique: NbqoTxYwMOSz1n-Y13nYiw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 52118185302A; Tue, 31 Aug 2021 12:16:04 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB1BC1001281; Tue, 31 Aug 2021 12:15:46 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 13FFA1800936; Tue, 31 Aug 2021 14:15:45 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Laurent Vivier , Peter Xu , Peter Maydell , Marcel Apfelbaum , Cornelia Huck , qemu-ppc@nongnu.org, Bastian Koppelmann , Thomas Huth , Eduardo Habkost , qemu-riscv@nongnu.org, David Gibson , Aleksandar Rikalo , Stafford Horne , Huacai Chen , Halil Pasic , Palmer Dabbelt , Bin Meng , Mahmoud Mandour , Max Filippov , Alexandre Iooss , Greg Kurz , "Edgar E. Iglesias" , Richard Henderson , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , "Michael S. Tsirkin" , Paolo Bonzini , Alistair Francis , qemu-s390x@nongnu.org, Christian Borntraeger , Jiaxun Yang , David Hildenbrand , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann Subject: [PATCH 00/29] [RFC] build more i386 tcg code modular. Date: Tue, 31 Aug 2021 14:15:16 +0200 Message-Id: <20210831121545.2874233-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.129.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.391, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2021 12:16:16 -0000 This series moves a big pile of code from core qemu to the tcg module.=0D =0D To allow for more fine-grained patches the first patch disables modular=0D tcg and the last patch re-enables it. Alternatively we could move all=0D the build system changes (patches 4-8) to the end of the series and=0D squash them into a single patch. Not sure which is better ...=0D =0D The fundamental idea of this series is that any call from core qemu into=0D tcg gets routed through function pointers. This is simliar to the way=0D we handle the spice module (see ui/spice-module.c).=0D =0D Initially the function pointers are filled with stubs, when the tcg=0D module loads all function pointers are updated to point to the real=0D functions instead. One side effect of this is that compile-time stubs=0D will become runtime-stubs.=0D =0D Series overview:=0D 1 - disable modular tcg.=0D 2 =3D> 3 - misc small tweaks.=0D 4 =3D> 8 - build system changes.=0D 9 =3D> 21 - add generic tcg function pointers.=0D 22 =3D> 28 - add i386 tcg function pointers.=0D 29 - re-enable modular tcg.=0D =0D take care,=0D Gerd=0D =0D Gerd Hoffmann (29):=0D build: temporarily disable modular tcg=0D plugins: register qemu_plugin_opts using opts_init()=0D tcg/module: move hmp.c to module=0D tcg/module: move cputlb.c to module=0D tcg/module: move tcg_ss to module [accel/tcg]=0D tcg/module: move tcg_ss to module [tcg]=0D tcg/module: move files to module [target/i386/tcg]=0D move cpu-exec-common.c from tcg module to core qemu [accel/tcg]=0D tcg/module: add tcg-module.[ch] infrastructure=0D tcg_funcs: Add tlb_flush to TCGModuleOps=0D tcg_funcs: Add tlb_flush_page to TCGModuleOps=0D tcg_funcs: Add tlb_reset_dirty to TCGModuleOps=0D tcg_funcs: Add tlb_plugin_lookup to TCGModuleOps=0D tcg_funcs:Add tcg_exec_{realizefn,unrealizefn} to TCGModuleOps=0D tcg_funcs: Add tb_flush to TCGModuleOps=0D tcg: use tb_page_addr_t for tb_invalidate_phys_range()=0D tcg: drop tb_invalidate_phys_page_range()=0D tcg_funcs: Add tb_invalidate_phys_range to TCGModuleOps=0D tcg_funcs: Add tb_check_watchpoint to TCGModuleOps=0D tcg_funcs: Add cpu_restore_state to TCGModuleOps=0D tcg_funcs: Add curr_cflags to TCGModuleOps=0D tcg_i386_funcs: Add update_fp_status to TCGI386ModuleOps=0D tcg_i386_funcs: Add update_mxcsr_status to TCGI386ModuleOps=0D tcg_i386_funcs: Add update_mxcsr_from_sse_status to TCGI386ModuleOps=0D tcg_i386_funcs: Add x86_register_ferr_irq to TCGI386ModuleOps=0D tcg_i386_funcs: Add cpu_set_ignne to TCGI386ModuleOps=0D tcg_i386_funcs: Add cpu_x86_update_dr7 to TCGI386ModuleOps=0D tcg_i386_funcs: Add cpu_cc_compute_all to TCGI386ModuleOps=0D Revert "build: temporarily disable modular tcg"=0D =0D include/exec/cpu-all.h | 2 -=0D include/exec/exec-all.h | 16 ++------=0D include/exec/ram_addr.h | 2 -=0D include/exec/translate-all.h | 2 -=0D include/qemu/plugin.h | 7 ----=0D include/tcg/tcg-module-i386.h | 15 ++++++++=0D include/tcg/tcg-module.h | 24 ++++++++++++=0D target/i386/cpu.h | 17 ++------=0D accel/stubs/tcg-stub.c | 4 --=0D accel/tcg/cpu-exec-common.c | 10 ++++-=0D accel/tcg/cpu-exec.c | 15 ++++++--=0D accel/tcg/cputlb.c | 14 ++++++-=0D accel/tcg/tcg-module-i386.c | 33 ++++++++++++++++=0D accel/tcg/tcg-module.c | 60 +++++++++++++++++++++++++++++=0D accel/tcg/translate-all.c | 55 +++++++-------------------=0D cpu.c | 14 +++----=0D gdbstub.c | 4 +-=0D hw/i386/pc.c | 2 +-=0D hw/i386/pc_piix.c | 2 +-=0D hw/i386/pc_q35.c | 2 +-=0D hw/ppc/spapr_hcall.c | 2 +-=0D linux-user/main.c | 2 +-=0D linux-user/mmap.c | 8 ++--=0D linux-user/syscall.c | 4 +-=0D plugins/api.c | 4 +-=0D plugins/core.c | 2 +-=0D plugins/loader.c | 11 +++++-=0D softmmu/physmem.c | 22 +++++------=0D softmmu/vl.c | 1 -=0D target/alpha/helper.c | 2 +-=0D target/alpha/mem_helper.c | 2 +-=0D target/alpha/sys_helper.c | 2 +-=0D target/arm/helper.c | 26 ++++++-------=0D target/arm/op_helper.c | 2 +-=0D target/arm/tlb_helper.c | 8 ++--=0D target/cris/helper.c | 2 +-=0D target/i386/cpu-dump.c | 2 +-=0D target/i386/gdbstub.c | 2 +-=0D target/i386/helper.c | 10 ++---=0D target/i386/machine.c | 8 ++--=0D target/i386/tcg/cc_helper.c | 9 ++++-=0D target/i386/tcg/fpu_helper.c | 23 +++++++----=0D target/i386/tcg/int_helper.c | 8 ++--=0D target/i386/tcg/mem_helper.c | 8 ++--=0D target/i386/tcg/misc_helper.c | 4 +-=0D target/i386/tcg/seg_helper.c | 10 ++---=0D target/i386/tcg/sysemu/bpt_helper.c | 9 ++++-=0D target/i386/tcg/sysemu/fpu_helper.c | 12 +++++-=0D target/i386/tcg/sysemu/svm_helper.c | 2 +-=0D target/i386/tcg/tcg-stub.c | 25 ------------=0D target/m68k/op_helper.c | 6 +--=0D target/microblaze/helper.c | 2 +-=0D target/mips/sysemu/cp0.c | 2 +-=0D target/openrisc/sys_helper.c | 8 ++--=0D target/ppc/excp_helper.c | 2 +-=0D target/riscv/csr.c | 2 +-=0D target/s390x/gdbstub.c | 2 +-=0D target/s390x/sigp.c | 2 +-=0D target/s390x/tcg/excp_helper.c | 2 +-=0D target/tricore/op_helper.c | 2 +-=0D target/xtensa/helper.c | 6 +--=0D accel/tcg/meson.build | 24 ++++++++----=0D target/i386/tcg/meson.build | 7 +++-=0D target/i386/tcg/sysemu/meson.build | 5 ++-=0D tcg/meson.build | 2 +-=0D 65 files changed, 367 insertions(+), 239 deletions(-)=0D create mode 100644 include/tcg/tcg-module-i386.h=0D create mode 100644 include/tcg/tcg-module.h=0D create mode 100644 accel/tcg/tcg-module-i386.c=0D create mode 100644 accel/tcg/tcg-module.c=0D delete mode 100644 target/i386/tcg/tcg-stub.c=0D =0D --=20=0D 2.31.1=0D =0D