misc: zynq_slcr: Fix MMIO writes
commit16514367efea1172e7b702c61c6f5637bf577f5b
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Fri, 16 Oct 2015 10:14:53 +0000 (16 11:14 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Oct 2015 16:17:10 +0000 (21 11:17 -0500)
tree83f0977a0ee5854ae7ea585bbfcb41ef0047e205
parent55b4efb034155aa22d8392f4d6b7339807e3ab44
misc: zynq_slcr: Fix MMIO writes

The /4 for offset calculation in MMIO writes was happening twice giving
wrong write offsets. Fix.

While touching the code, change the if-else to be a short returning if
and convert the debug message to a GUEST_ERROR, which is more accurate
for this condition.

Cc: qemu-stable@nongnu.org
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit c209b0537203c58a051e5d837320335cea23e494)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/misc/zynq_slcr.c