From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMslv-0005pY-RW for qemu-devel@nongnu.org; Wed, 05 Aug 2015 03:05:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMslq-00046U-RL for qemu-devel@nongnu.org; Wed, 05 Aug 2015 03:05:55 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMslq-00043f-M3 for qemu-devel@nongnu.org; Wed, 05 Aug 2015 03:05:50 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NSL001IVL1MD160@mailout1.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 05 Aug 2015 08:05:46 +0100 (BST) From: Pavel Fedin Date: Wed, 05 Aug 2015 10:05:43 +0300 Message-id: Subject: [Qemu-devel] [PATCH v2 0/3] hw/arm/gic: Code duplication removal List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Christoffer Dall , Eric Auger I decided to make this small patchset in order to try to push some of my changes before 2.4 is out. Idea of first patch of this set came during vGICv3 implementation. In order to be able to upstream it earlier i decided to make it doing something useful and refactored GICv2 code. This patchset contains no functional enhancements. Only cleanup and refactor. v1 -> v2: - Use correct size of CPU interface region for pre-v2 GICs - Improved comments Pavel Fedin (3): Merge memory_region_init_reservation() into memory_region_init_io() hw/arm/gic: Kill code duplication Introduce gic_class_name() instead of repeating condition hw/arm/virt.c | 7 ++--- hw/cpu/a15mpcore.c | 8 ++--- hw/intc/arm_gic.c | 64 ++++++++++++---------------------------- hw/intc/arm_gic_common.c | 41 +++++++++++++++++++++++++ hw/intc/arm_gic_kvm.c | 28 +----------------- include/exec/memory.h | 14 +++++++-- include/hw/intc/arm_gic_common.h | 3 ++ memory.c | 10 +------ target-arm/kvm_arm.h | 5 ++++ 9 files changed, 86 insertions(+), 94 deletions(-) -- 1.9.5.msysgit.0