hw/arm_gic: Move gic_get_current_cpu into arm_gic.c
commit926c4aff6ecf2b26b3508773196314a774bf5c4c
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Apr 2012 11:39:07 +0000 (13 11:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Apr 2012 11:39:07 +0000 (13 11:39 +0000)
tree0def7e2ac8ed4b17044e02b45653c406839d970b
parent386e29554e8f1a7e910682789418aed2094b4ef6
hw/arm_gic: Move gic_get_current_cpu into arm_gic.c

Move the gic_get_current_cpu() function into arm_gic.c.
There are only two implementations: (1) "get the index
of the currently executing CPU", used by all multicore
GICs, and (2) "always 0", used by all GICs instantiated
with a single CPU interface (the Realview board GIC and
the v7M NVIC). So we can move this into the main GIC
source file.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Evgeny Voevodin <e.voevodin@samsung.com>
hw/a15mpcore.c
hw/a9mpcore.c
hw/arm11mpcore.c
hw/arm_gic.c
hw/armv7m_nvic.c
hw/exynos4210_gic.c
hw/realview_gic.c