[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] regs_to_env() ?
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] regs_to_env() ? |
Date: |
Thu, 22 Jul 2010 22:08:07 +0000 |
On Thu, Jul 22, 2010 at 2:06 AM, Jun Koi <address@hidden> wrote:
> 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...
Yes, those lines don't exist anymore, they were used before TCG. IIRC
EAX was defined to AREG1 etc.