]> git.proxmox.com Git - qemu.git/commit
hw/integratorcp: Fix bugs in writes to CM_CTRL system register
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 12 Sep 2011 14:43:31 +0000 (15:43 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 16 Sep 2011 13:28:46 +0000 (08:28 -0500)
commitdf3f457b4b3a910de575b39bfa11d9a41330077c
treeb215e0237dca73ed1a858e650bbbc24c91643f1d
parentf44cc4852a04c0423780e115b935e201aaf3384e
hw/integratorcp: Fix bugs in writes to CM_CTRL system register

Fix a number of bugs in the implementation of writes to the CM_CTRL
system register:
 * write to cm_ctrl, not cm_init !
 * an '&' vs '^' typo meant we would write the inverse of the bits
 * handling the LED via printf() meant we spew lots of output
   to stdout when Linux uses the LED as a heartbeat indicator
 * we would hw_error() if a reset was requested rather than
   actually resetting

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