aboutsummaryrefslogtreecommitdiff
path: root/softmmu/vl.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-02-03 16:58:33 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-03-06 13:15:42 +0100
commitc80cafa0c73cafa2d24236913a16eb68d505ab06 (patch)
treeef83742953455021060d5fc4b6897d3a064a5402 /softmmu/vl.c
parent1f649fe088fc6ac119ebdffa9a7691f25a02e937 (diff)
downloadqemu-c80cafa0c73cafa2d24236913a16eb68d505ab06.zip
qemu-c80cafa0c73cafa2d24236913a16eb68d505ab06.tar.gz
qemu-c80cafa0c73cafa2d24236913a16eb68d505ab06.tar.bz2
softmmu: Add qemu_init_arch_modules()
module_allow_arch() is the single target-specific call in the whole vl.c file. Move the module initialization out to arch_init.c, that way we'll be able to build vl.o once for all targets (the next commit). Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220207075426.81934-21-f4bug@amsat.org>
Diffstat (limited to 'softmmu/vl.c')
-rw-r--r--softmmu/vl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 1fe0288..0b81f61 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -2815,10 +2815,7 @@ void qemu_init(int argc, char **argv, char **envp)
error_init(argv[0]);
qemu_init_exec_dir(argv[0]);
-#ifdef CONFIG_MODULES
- module_init_info(qemu_modinfo);
- module_allow_arch(TARGET_NAME);
-#endif
+ qemu_init_arch_modules();
qemu_init_subsystems();