Skip to contentSkip to conversation

Fetching & Translating Instructions

Qemu-devel Mohammad Al-Saleh 1 participant 1 message Aug 26, 2008

lore
Share & tools
lore
#0 lore raw

Hi;

I am really confused about what is going on in fetching and then translating instructions. First of all, the 'start_pc' parameter of the function 'disas_insn'  in target-i386/translator.c contains a virtual address but it is used directly to get guest instruction code! how come? should the instruction be read from guest physical memory or from host memory? I need the exact physical memory of the guest from which we fetch an instruction to be executed? Any help is very appreciated...

Thanks,

...Mohammed