qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] regs_to_env() ?
@ 2010-07-22  2:06 Jun Koi
  2010-07-22 22:08 ` Blue Swirl
  0 siblings, 1 reply; 4+ messages in thread
From: Jun Koi @ 2010-07-22  2:06 UTC (permalink / raw)
  To: qemu-devel

Hi,

Function regs_to_env() in target-i386/exec.h has a code like below:

...
#ifdef reg_EAX
env->regs[R_EAX] = EAX
#endif
...

However, elsewhere we have EAX defined as:

#define EAX (env->regs[R_EAX])

This means effectively, we have code like:

env->regs[R_EAX] = env->regs[R_EAX];

What is the meaning of this code? That looks pointless to me, but I
guess I must be wrong here...

Thanks,
Jun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-23  1:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22  2:06 [Qemu-devel] regs_to_env() ? Jun Koi
2010-07-22 22:08 ` Blue Swirl
2010-07-23  1:43   ` Jun Koi
2010-07-23  1:51     ` Jun Koi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).