Skip to contentSkip to conversation

question about binary translation on qemu

Qemu-devel oussema ben khedher 2 participants 2 messages Feb 7, 2017 – Feb 8, 2017 1 message not in the archive

lore
Share & tools
lore
#2 lore raw
Quoted 4 lines · oussema ben khedher

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