armv7m: Use QOMified armv7m object in armv7m_init()
commit21e0c38fe2aa93b76a0aef967b921de8f2b19cf1
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Feb 2017 15:35:58 +0000 (20 15:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 16:18:49 +0000 (28 16:18 +0000)
tree6f439cd67b6c362d8b29ef9b44235044a649f5a8
parent56b7c66f498cea39c6c30f4eca2129eb83baa120
armv7m: Use QOMified armv7m object in armv7m_init()

Make the legacy armv7m_init() function use the newly QOMified
armv7m object rather than doing everything by hand.

We can return the armv7m object rather than the NVIC from
armv7m_init() because its interface to the rest of the
board (GPIOs, etc) is identical.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1487604965-23220-5-git-send-email-peter.maydell@linaro.org
hw/arm/armv7m.c