summary refs log tree commit diff stats
path: root/hw/pci-host/prep.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@linaro.org>2014-03-18 13:18:40 -0500
committerPeter Maydell <peter.maydell@linaro.org>2014-03-18 19:38:55 +0000
commitce8f0905a59232982c8a220169e11c14c73e7dea (patch)
tree821ac781cd68fdd8beca82c136d5ec1e10005f61 /hw/pci-host/prep.c
parent22709e90a270a36418f1b1d5d3277016eec1edc2 (diff)
downloadfocaccia-qemu-ce8f0905a59232982c8a220169e11c14c73e7dea.tar.gz
focaccia-qemu-ce8f0905a59232982c8a220169e11c14c73e7dea.zip
pl011: fix UARTRSR accesses corrupting the UARTCR value
Offset 4 is UARTRSR/UARTECR, not the UARTCR. The UARTCR would be
corrupted if the UARTRSR is ever written. Fix by implementing a correct
model of the UARTRSR/UARTECR register. Reads of this register simply
reflect the error bits in data register. Only breaks can be triggered in
QEMU. With the pl011_can_receive function, we effectively have flow
control between the host and the model. Framing and parity errors simply
don't make sense in the model and will never occur.

Signed-off-by: Rob Herring <rob.herring@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1395166721-15716-3-git-send-email-robherring2@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/pci-host/prep.c')
0 files changed, 0 insertions, 0 deletions