]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
hw/arm/strongarm: Fix handling of GPSR/GPCR reads
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 29 Jun 2014 17:38:39 +0000 (18:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 29 Jun 2014 17:38:39 +0000 (18:38 +0100)
commit92335a0d4021a3b44ccc88c9fc6c0fd2113f1882
tree09959745139e7394dc3a607d19878695993e9b1d
parent6e411af9351c1b82c2a749653eb4b8d35bf8c04a
hw/arm/strongarm: Fix handling of GPSR/GPCR reads

The StrongARM GPIO GPSR and GPCR registers are write-only, with reads being
undefined behaviour. Instead of having GPCR return 31337 and GPSR return
the value last written, make both log the guest error and return 0.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
hw/arm/strongarm.c