All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Kenneth Adam Miller <kennethadammiller@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: Access target TranslatorOps
Date: Wed, 20 Jul 2022 09:44:58 +0100	[thread overview]
Message-ID: <87y1woyxvo.fsf@linaro.org> (raw)
In-Reply-To: <CAK7rcp-qoQrEo2D_H=39AeJVtZJfmNUuFRfTdQr6LqUpjp+FEQ@mail.gmail.com>


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	other threads:[~2022-07-20  8:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-19 19:37 Access target TranslatorOps Kenneth Adam Miller
2022-07-20  8:44 ` Alex Bennée [this message]
2022-07-20 16:37   ` Kenneth Adam Miller
2022-07-20 17:37     ` Peter Maydell
2022-07-22  5:08       ` Kenneth Adam Miller
2022-07-22  9:18         ` Alex Bennée
2022-07-22 13:48           ` Kenneth Adam Miller
2022-07-22 14:38             ` Alex Bennée
2022-07-25  9:07         ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1woyxvo.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=kennethadammiller@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.