[Qemu-devel] [PATCH v2] hw/armv7m_nvic: Implement byte/halfword access for NVIC SCB_SHPRx registers

2012-10-14 Thread Andre Beckus
e 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 --- This patch was originally part of a series. The other patch in the series was dropped, so I am resubmitting this as a si

Re: [Qemu-devel] [PATCH 2/2] hw/armv7m_nvic: Add global variable for SysTick external reference clock

2012-10-11 Thread Andre Beckus
On Wed, 2012-10-10 at 13:03 +0100, Peter Maydell wrote: > On 9 October 2012 23:29, Andre Beckus wrote: > > Adds a new external reference clock scale variable to complement the > > existing > > system_clock_scale variable. Previously, the value was hardcoded to 1000 >

Re: [Qemu-devel] [PATCH 1/2] hw/armv7m_nvic: Implement byte read/write for NVIC SCB_SHPRx registers

2012-10-11 Thread Andre Beckus
On Wed, 2012-10-10 at 12:32 +0100, Peter Maydell wrote: > On 9 October 2012 23:29, Andre Beckus wrote: > > Adds nvic_writeb and nvic_readb functions. > > > > Implements byte read/write for the NVIC SCB_SHPRx (System Handler > > Priority Registers). Currently,

[Qemu-devel] [PATCH 1/2] hw/armv7m_nvic: Implement byte read/write for NVIC SCB_SHPRx registers

2012-10-10 Thread Andre Beckus
that because the NVIC ID register read handles both byte and word reads, it is left as-is, and not moved into the new nvic_readb function. Signed-off-by: Andre Beckus --- hw/armv7m_nvic.c | 44 1 file changed, 44 insertions(+) diff --git a/hw

[Qemu-devel] [PATCH 0/2] hw/armv7m_nvic: NVIC Enhancements

2012-10-10 Thread Andre Beckus
This patch series provides the following NVIC enhancements: - Allow byte access to the System Handler Priority Registers. - Add a global variable to set the SysTick external reference clock scale. Andre Beckus (2): hw/armv7m_nvic: Implement byte read/write for NVIC SCB_SHPRx registers hw

[Qemu-devel] [PATCH 2/2] hw/armv7m_nvic: Add global variable for SysTick external reference clock

2012-10-10 Thread Andre Beckus
Adds a new external reference clock scale variable to complement the existing system_clock_scale variable. Previously, the value was hardcoded to 1000 when calculating the SysTick scale. The new variable defaults to 1000 to maintain backward compatibility. Signed-off-by: Andre Beckus --- hw