qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access target TranslatorOps


From: Kenneth Adam Miller
Subject: Re: Access target TranslatorOps
Date: Wed, 20 Jul 2022 12:37:58 -0400

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.bennee@linaro.org> wrote:

Kenneth Adam Miller <kennethadammiller@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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]