[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 1/1] ARM: PL061: Checking register r/w accesses to
Re: [Qemu-arm] [PATCH 1/1] ARM: PL061: Checking register r/w accesses to reserved area
Thu, 25 Feb 2016 12:59:00 +0000
On 18 February 2016 at 16:56, Wei Huang <address@hidden> wrote:
> 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 <address@hidden>
> hw/gpio/pl061.c | 30 ++++++++++++++++++++++--------
> 1 file changed, 22 insertions(+), 8 deletions(-)
Applied to target-arm.next, thanks.