armv7-m: Return DeviceState* from armv7m_init()
authorMichael Davidsaver <mdavidsaver@gmail.com>
Tue, 3 Nov 2015 13:49:41 +0000 (13:49 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 3 Nov 2015 13:49:41 +0000 (13:49 +0000)
commit20c59c38927902a8e2c67da7d9a24b5222a31cb7
tree3082cca6786cbf21958a2d7743f462cb9ab9d6cf
parentc3a9a689c6ff07ba2e00bafc68626fad84587794
armv7-m: Return DeviceState* from armv7m_init()

Change armv7m_init to return the DeviceState* for the NVIC.
This allows access to all GPIO blocks, not just the IRQ inputs.
Move qdev_get_gpio_in() calls out of armv7m_init() into
board code for stellaris and stm32f205 boards.

Signed-off-by: Michael Davidsaver <mdavidsaver@gmail.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/armv7m.c
hw/arm/stellaris.c
hw/arm/stm32f205_soc.c
include/hw/arm/arm.h