Re: Access target TranslatorOps

2022-07-25 Thread Peter Maydell
On Fri, 22 Jul 2022 at 06:09, Kenneth Adam Miller wrote: > > I need to determine the set of instruction encodings that the TCG can support > for a given platform. I am not bothered whether the target runs at all, and > in fact it is better if it doesn't, so runtime or translate time doesn't >

Re: Access target TranslatorOps

2022-07-22 Thread Alex Bennée
Kenneth Adam Miller writes: > Oh whoa, I thought I could have an architecture neutral way to > interface with the TCG to find this out. While the TCG intermediates are architecture neutral there are enough difference between the various guest architectures in the way exceptions are raised

Re: Access target TranslatorOps

2022-07-22 Thread Kenneth Adam Miller
Oh whoa, I thought I could have an architecture neutral way to interface with the TCG to find this out. Yes, I do have to use the decode tree, and converting the script to output the codes would suffice for my case. However, I do not know how to do that at the moment. I've tried my best to

Re: Access target TranslatorOps

2022-07-22 Thread Alex Bennée
Kenneth Adam Miller writes: > I need to determine the set of instruction encodings that the TCG can support > for a given platform. I am not bothered > whether the target runs at all, and in fact it is better if it > doesn't, so runtime or translate time doesn't bother me. Which

Re: Access target TranslatorOps

2022-07-21 Thread Kenneth Adam Miller
I need to determine the set of instruction encodings that the TCG can support for a given platform. I am not bothered whether the target runs at all, and in fact it is better if it doesn't, so runtime or translate time doesn't bother me. Imagine I were adding support for more instructions for a

Re: Access target TranslatorOps

2022-07-20 Thread Peter Maydell
On Wed, 20 Jul 2022 at 17:39, Kenneth Adam Miller wrote: > 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

Re: Access target TranslatorOps

2022-07-20 Thread Kenneth Adam Miller
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

Re: Access target TranslatorOps

2022-07-20 Thread Alex Bennée
Kenneth Adam Miller 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?

Access target TranslatorOps

2022-07-19 Thread Kenneth Adam Miller
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?