diff options
Diffstat (limited to 'softmmu/arch_init.c')
-rw-r--r-- | softmmu/arch_init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/softmmu/arch_init.c b/softmmu/arch_init.c index 8919405..79716f9 100644 --- a/softmmu/arch_init.c +++ b/softmmu/arch_init.c @@ -22,6 +22,7 @@ * THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/module.h" #include "sysemu/arch_init.h" #ifdef TARGET_SPARC @@ -39,3 +40,11 @@ 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 +} |