Hello Gerd, On sexta-feira, 11 de junho de 2021 10:03:21 -03 Gerd Hoffmann wrote: > Hi, > > > Are there any pending patches to handle the remaining tcg dependencies > > in qemu? When trying to build tcg modular (more than only > > tcg-accel-ops*) I get lots of unresolved symbols to tcg bits which are > > referenced directly (in cpu.c, gdbstub.c, monitor, ...). > > > > The CONFIG_TCG=n case is handled either with stubs or with #ifdef > > CONFIG_TCG, which doesn't fly for modular tcg ... > > So, enough for today, to be continued next week. > Work branch pushed to > https://git.kraxel.org/cgit/qemu/log/?h=sirius/modinfo-playground > > Topmost patch doesn't compile but shows the build changes. I cloned your 'sirius/modinfo-playground-good' and started playing with the command line options to build these modules. I would like to suggest to change the current "--enable-X" with "--X=[enabled,disabled,module]", that seems to make more sense for these modules. For instance: $ ../configure --target-list=x86_64-softmmu --tcg=module ... Targets and accelerators ... TCG support: YES TCG backend: module (x86_64) TCG debug enabled: NO target list: x86_64-softmmu ... $ ../configure --target-list=x86_64-softmmu --tcg=disabled ... Targets and accelerators ... TCG support: NO target list: x86_64-softmmu ... $ ../configure --target-list=x86_64-softmmu --tcg=enabled # (default) ... Targets and accelerators ... TCG support: YES TCG backend: native (x86_64) TCG debug enabled: NO target list: x86_64-softmmu ... I attached a small patch here, just to illustrate what I'm saying. If you like the suggestion I can start implementing it for those modules you're currently working on. What do you think? Thank you, José R. Ziviani > > take care, > Gerd