Hi, > But, in anyway, I'll still need to store the target architecture that > can use such core module, like I did here in this patch. Otherwise, > if I compile different targets at the same time, I'll end up with the > same problem of targets trying to load wrong modules.
That all works just fine today. If you have target-specific modules (i.e. source files added to specific_ss instead of softmmu_ss when compiling into core qemu) you only need to add those to the target_modules[] (instead of modules[]) and you are set. In-tree example: qtest accelerator. take care, Gerd