diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-04 22:26:08 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
| commit | f2d4df439e0b2c2c3cebf792a7966466c9d97b52 (patch) | |
| tree | 17d0c0bf29dbb4cdeeff72c01f8cb0451316cf0c /system/arch_init.c | |
| parent | df9ae6aa84b92bb73c84194dc60f938e2495594c (diff) | |
| download | focaccia-qemu-f2d4df439e0b2c2c3cebf792a7966466c9d97b52.tar.gz focaccia-qemu-f2d4df439e0b2c2c3cebf792a7966466c9d97b52.zip | |
system: Open-code qemu_init_arch_modules() using target_name()
Mostly revert commit c80cafa0c73 ("system: Add qemu_init_arch_modules")
but using target_name() instead of the target specific 'TARGET_NAME'
definition.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250305005225.95051-3-philmd@linaro.org>
Diffstat (limited to 'system/arch_init.c')
| -rw-r--r-- | system/arch_init.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/system/arch_init.c b/system/arch_init.c index d2c32f8488..b1baed18a3 100644 --- a/system/arch_init.c +++ b/system/arch_init.c @@ -22,7 +22,6 @@ * THE SOFTWARE. */ #include "qemu/osdep.h" -#include "qemu/module.h" #include "system/arch_init.h" #ifdef TARGET_SPARC @@ -40,11 +39,3 @@ int graphic_depth = 32; #endif const uint32_t arch_type = QEMU_ARCH; - -void qemu_init_arch_modules(void) -{ -#ifdef CONFIG_MODULES - module_init_info(qemu_modinfo); - module_allow_arch(TARGET_NAME); -#endif -} |