hw/pxa2xx.c: Fix handling of R/WC bits in PMCR
commitafd4a65225318ec7900871ed69a46ce992637ef2
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 9 Nov 2011 20:46:35 +0000 (9 20:46 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Nov 2011 18:49:53 +0000 (11 12:49 -0600)
tree0a135bc7bd5afc63ca2c0cbce46ab87b38ae60d6
parentb78c2b3aad2b42084265c89f93a92733d68e9003
hw/pxa2xx.c: Fix handling of R/WC bits in PMCR

Fix a bug in handling the write-one-to-clear bits in the PMCR
which meant that we would always clear the bit even if the
value written was a zero. Spotted by Coverity (see bug 887883).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pxa2xx.c