qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] regs_to_env() ?


From: Jun Koi
Subject: Re: [Qemu-devel] regs_to_env() ?
Date: Fri, 23 Jul 2010 10:51:20 +0900

On Fri, Jul 23, 2010 at 10:43 AM, Jun Koi <address@hidden> wrote:
> On Fri, Jul 23, 2010 at 7:08 AM, Blue Swirl <address@hidden> wrote:
>> 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.
>>
>
> hey, that sounds funny.
>
> will you take a patch removing both regs_to_env() and env_to_regs() ?

oops that was removed in latest code already. (i looked at 0.12.4 code)

thanks,
J



reply via email to

[Prev in Thread] Current Thread [Next in Thread]