|
| From: | Paolo Bonzini |
| Subject: | Re: [Qemu-devel] [PULL 073/130] Add Enhanced Three-Speed Ethernet Controller (eTSEC) |
| Date: | Fri, 14 Mar 2014 12:23:01 +0100 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
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?
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |