diff options
author | Wei Huang <wei@redhat.com> | 2016-02-18 11:56:20 -0500 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-02-26 15:09:42 +0000 |
commit | 09aa3bf382243151e77682b2e89f997349b306d8 (patch) | |
tree | 9b43823cb65517c219a6be2aa08b423a55fb3e4a /hw/arm/tosa.c | |
parent | 1fce1ba985d9c5c96e5b9709e1356d1814b8fa9e (diff) | |
download | qemu-09aa3bf382243151e77682b2e89f997349b306d8.zip qemu-09aa3bf382243151e77682b2e89f997349b306d8.tar.gz qemu-09aa3bf382243151e77682b2e89f997349b306d8.tar.bz2 |
ARM: PL061: Checking register r/w accesses to reserved area
pl061.c emulates two GPIO devices, ARM PL061 and TI Stellaris, which
share the same read/write functions (pl061_read and pl061_write).
However PL061 and Stellaris have different GPIO register definitions
and pl061_read()/pl061_write() doesn't check it. This patch enforces
checking on offset, preventing R/W into the reserved memory area.
Signed-off-by: Wei Huang <wei@redhat.com>
Message-id: 1455814580-17699-1-git-send-email-wei@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/tosa.c')
0 files changed, 0 insertions, 0 deletions