[Qemu-devel] What's the meaning and the functionality of the assembly instructions in the beginning of cpu_exec?

2010-05-30 Thread
I’m working with Qemu source study, but now I have some difficulty in these assembly instructions at the beginning of cpu_exec function. My question as follows: After entering function cpu_exec, there are some assembly codes: register host_reg_t reg_AREG0 asm("ebp"); volatile host_reg_t

[Qemu-devel] How does env_to_regs and regs_to_env works?

2010-05-31 Thread
Now, I’m working with Qemu source study, but I have some difficulties. Could someday give me some help or advice. At the beginning of cpu_exec, there is a function call env_to_regs, but I cannot understand the behavior of env_to_regs. In my understanding, env_to_regs stores environment conte