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

2010-06-02 Thread Stuart Brady
On Mon, May 31, 2010 at 04:41:42PM +0800, 曹莹 wrote: > Codes in env_to_regs are like this: > > #ifdef reg_EAX > > EAX = env->regs[R_EAX]; [...] > I cannot find where the micro reg_EAX is defined [...] > I think, env_to_regs is actually a void function > But if this is true, how did Qemu’s regis

[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