That I know of, the TCG plugins do not allow me to feed the QEMU instance dynamically changing opcodes. I wouldn't use TranslatorOps if I don't have to. I want to facilitate a use case in which the contents of the target being emulated are changing, but it is not a self modifying target. I have to query and interact with the TCG to find out what opcodes are supported or not.
On Wed, Jul 20, 2022 at 4:46 AM Alex Bennée <alex.ben...@linaro.org> wrote: > > Kenneth Adam Miller <kennethadammil...@gmail.com> writes: > > > Hello, > > > > I would like to be able to, from the linux-user/main.c, access the > target's registered TranslatorOps instance. How would I > > do that when 1) the TCG is correctly initialized and ready to run 2) > > before QEMU starts to run or when it is safely paused? > > Why would you want to mess with the TranslatorOps? > > If you want to do some sort of analysis you might want to consider: > > https://qemu.readthedocs.io/en/latest/devel/tcg-plugins.html > > At which point you can hook into any translation or individual > instructions. > > -- > Alex Bennée >