From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPd6H-0002C3-J5 for qemu-devel@nongnu.org; Wed, 02 May 2012 13:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPd6F-0002VZ-NY for qemu-devel@nongnu.org; Wed, 02 May 2012 13:12:25 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:33531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPd6F-0002UL-GA for qemu-devel@nongnu.org; Wed, 02 May 2012 13:12:23 -0400 From: Peter Maydell Date: Wed, 2 May 2012 18:12:03 +0100 Message-Id: <1335978732-32559-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/9] disentangle NVIC from ARM GIC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paul Brook , =?UTF-8?q?Andreas=20F=C3=A4rber?= , patches@linaro.org This patch series refactors the ARMv7M NVIC so it no longer textually includes arm_gic.c Instead we have a single common base class which has the state struct, and a subclass for the GIC and another for the NVIC. As well as being generally rather nicer, this lays the groundwork for supporting a KVM in-kernel irqchip by getting the NVIC out of our hair. (My current KVM support code is another couple of patches on top of this which add a third subclass of ARMGICCommon which is the KVM model.) (Not intended for 1.1, but I expect I'll put it into my arm-devs.next tree to go a pullreq after master reopens for 1.2.) Peter Maydell (9): hw/arm_gic: Remove NVIC ifdefs from gic_state struct hw/arm_gic: Remove the special casing of NCPU for the NVIC hw/arm_gic: Move NVIC specific reset to armv7m_nvic_reset hw/armv7m_nvic: Use MemoryRegions for NVIC specific registers hw/arm_gic: Add qdev property for GIC revision hw/arm_gic: Make CPU target registers RAZ/WI on uniprocessor hw/arm_gic.c: Make NVIC interrupt numbering a runtime setting hw/arm_gic: Move CPU interface memory region setup into arm_gic_init hw/armv7m_nvic: Make the NVIC a freestanding class Makefile.target | 2 +- hw/a15mpcore.c | 1 + hw/arm11mpcore.c | 2 + hw/arm_gic.c | 366 ++++++++----------------------------------------- hw/arm_gic_common.c | 184 +++++++++++++++++++++++++ hw/arm_gic_internal.h | 136 ++++++++++++++++++ hw/armv7m_nvic.c | 138 ++++++++++++++++--- 7 files changed, 501 insertions(+), 328 deletions(-) create mode 100644 hw/arm_gic_common.c create mode 100644 hw/arm_gic_internal.h