]> git.proxmox.com Git - mirror_qemu.git/commit
armv7m: Don't assume the NVIC's CPU is CPU 0
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Feb 2019 14:55:41 +0000 (14:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Feb 2019 14:55:41 +0000 (14:55 +0000)
commit3693f217d38f053fa5a7fcd2841c07926c026218
tree6b871f3400bc5ca86da8931abc95035424a63b5d
parent287a7f6e39cfc44a39909862365fddfc90778968
armv7m: Don't assume the NVIC's CPU is CPU 0

Currently the ARMv7M NVIC object's realize method assumes that the
CPU the NVIC is attached to is CPU 0, because it thinks there can
only ever be one CPU in the system. To allow a dual-Cortex-M33
setup we need to remove this assumption; instead the armv7m
wrapper object tells the NVIC its CPU, in the same way that it
already tells the CPU what the NVIC is.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190121185118.18550-2-peter.maydell@linaro.org
hw/arm/armv7m.c
hw/intc/armv7m_nvic.c