Skip to contentSkip to conversation

hw/dma/pl080.c:354: possible typo ?

Qemu-devel dcb 1 participant 3 messages Oct 9, 2016 – Jan 11, 2017

lore
Share & tools
lore

dcb

author
#0 lore raw

Public bug reported:

hw/dma/pl080.c:354:1: warning: V578 An odd bitwise operation detected:
s->conf & (0x2 | 0x2). Consider verifying it.

Source code is

       if (s->conf & (PL080_CONF_M1 | PL080_CONF_M1)) {

Maybe better code

       if (s->conf & (PL080_CONF_M1 | PL080_CONF_M2)) {

** Affects: qemu
Importance: Undecided
Status: New

Signature · 24 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1631773

Title:
  hw/dma/pl080.c:354: possible typo ?

Status in QEMU:
  New

Bug description:
  hw/dma/pl080.c:354:1: warning: V578 An odd bitwise operation detected:
  s->conf & (0x2 | 0x2). Consider verifying it.

  Source code is

         if (s->conf & (PL080_CONF_M1 | PL080_CONF_M1)) {

  Maybe better code

         if (s->conf & (PL080_CONF_M1 | PL080_CONF_M2)) {

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1631773/+subscriptions
author
#1 lore raw

Thanks for reporting the issue, patch has now been included here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=04bb79d1f519ae190a

** Changed in: qemu
Status: New => Fix Committed

Signature · 24 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1631773

Title:
  hw/dma/pl080.c:354: possible typo ?

Status in QEMU:
  Fix Committed

Bug description:
  hw/dma/pl080.c:354:1: warning: V578 An odd bitwise operation detected:
  s->conf & (0x2 | 0x2). Consider verifying it.

  Source code is

         if (s->conf & (PL080_CONF_M1 | PL080_CONF_M1)) {

  Maybe better code

         if (s->conf & (PL080_CONF_M1 | PL080_CONF_M2)) {

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1631773/+subscriptions
#2 lore raw
In reply to dcb

Released with version 2.8.

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 24 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1631773

Title:
  hw/dma/pl080.c:354: possible typo ?

Status in QEMU:
  Fix Released

Bug description:
  hw/dma/pl080.c:354:1: warning: V578 An odd bitwise operation detected:
  s->conf & (0x2 | 0x2). Consider verifying it.

  Source code is

         if (s->conf & (PL080_CONF_M1 | PL080_CONF_M1)) {

  Maybe better code

         if (s->conf & (PL080_CONF_M1 | PL080_CONF_M2)) {

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1631773/+subscriptions