>>> On 20.01.15 at 11:46, <andrew.coop...@citrix.com> wrote:
> On 19/01/15 15:27, Jan Beulich wrote:
>> Only the low 32 bits are relevant.
>>
>> Signed-off-by: Jan Beulich <jbeul...@suse.com>
> 
> There are two examples of "regs->eax" which could turn to regs->_eax
> under the same argument; the if statement immediately after cpuid,

In

    if ( (regs->eax & 0x7fffffff) == 0x00000001 )

it really doesn't matter, as the high 33 bits get chopped off anyway.

> and the switch statement.

Yes, this could be cleaned up. But still its not under the same argument
as

    switch ( (uint32_t)regs->eax )

and

    switch ( regs->_eax )

are functionally identical, whereas the sole original change actually
fixed a functionality problem.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to