hw/armv7m_nvic: Implement byte/halfword access for NVIC SCB_SHPRx registers
commit0e8153dde7824e672127765914db30eb301f1aa4
authorAndre Beckus <mikemail98-qemu@yahoo.com>
Tue, 30 Oct 2012 07:45:07 +0000 (30 07:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 30 Oct 2012 07:45:07 +0000 (30 07:45 +0000)
treecfe55958cb958fdd38843a03f3d37e62dd93c84c
parent38c4718392fda2bda1e084366b9aa41b49b9d8cf
hw/armv7m_nvic: Implement byte/halfword access for NVIC SCB_SHPRx registers

Implement byte/halfword read and write for the NVIC SCB_SHPRx
(System Handler Priority Registers).  Do this by removing SHPR word access
from nvic_readl/writel and adding common code to hande all access
sizes in nvic_sysreg_read/write.

Because the "nvic_state *s" variable now needs to be declared in
nvic_sysreg_read/write, the "void *opaque" parameter of
nvic_readl/writel is changed to "nvic_state *s".

Signed-off-by: Andre Beckus <mikemail98-qemu@yahoo.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/armv7m_nvic.c