From 926c4aff6ecf2b26b3508773196314a774bf5c4c Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Fri, 13 Apr 2012 11:39:07 +0000 Subject: 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 Reviewed-by: Evgeny Voevodin --- hw/a15mpcore.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'hw/a15mpcore.c') diff --git a/hw/a15mpcore.c b/hw/a15mpcore.c index 67206ec..2e2ed42 100644 --- a/hw/a15mpcore.c +++ b/hw/a15mpcore.c @@ -20,14 +20,6 @@ #include "sysbus.h" -/* Configuration for arm_gic.c: - * how to ID current CPU - */ -static inline int gic_get_current_cpu(void) -{ - return cpu_single_env->cpu_index; -} - #include "arm_gic.c" /* A15MP private memory region. */ -- cgit v1.1