[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] question about binary translation on qemu
From: |
Frederic Konrad |
Subject: |
Re: [Qemu-devel] question about binary translation on qemu |
Date: |
Wed, 8 Feb 2017 16:06:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 |
On 02/07/2017 02:53 PM, oussema ben khedher wrote:
> hi
> in my academic project i needed to know how qemu exactly translate an arm
> instruction to the host assembly (in my case x86) so if you can help me to
> know the function in the source code of qemu that tdo this work
> thank you
>
Hi,
There is a lot of code involved in the whole translation:
The guest instructions are not directly translated to the host
assembly but they are first translated in some intermediate OPs
(named TCG).
This translation takes place here:
void gen_intermediate_code(CPUARMState *env, TranslationBlock *tb)
In target/arm/translate.c
Fred