qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PULL 073/130] Add Enhanced Three-Speed Ethernet Contro


From: Fabien Chouteau
Subject: Re: [Qemu-devel] [PULL 073/130] Add Enhanced Three-Speed Ethernet Controller (eTSEC)
Date: Fri, 14 Mar 2014 17:42:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 03/14/2014 12:23 PM, Paolo Bonzini wrote:
> Il 07/03/2014 00:33, Alexander Graf ha scritto:
>> +                if (bd.flags | BD_INTERRUPT) {
>> +                    /* Set RXFx */
>> +                    etsec->regs[RSTAT].value |= 1 << (7 - ring_nbr);
>> +
>> +                    /* Set IEVENT */
>> +                    ievent_set(etsec, IEVENT_RXF);
>> +                }
>> +
>> +            } else {
>> +                if (bd.flags | BD_INTERRUPT) {
>> +                    /* Set IEVENT */
>> +                    ievent_set(etsec, IEVENT_RXB);
>> +                }
>> +            }
> 
> Coverity flags this "bd.flags | BD_INTERRUPT" idiom... What did you mean?  
> Can you send a fix to qemu-trivial?
> 

That's a very bad mistake indeed, it's supposed to be a "bd.flags & 
BD_INTERRUPT"...




reply via email to

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