From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKPwg-0004b5-Lv for qemu-devel@nongnu.org; Wed, 29 Jul 2015 07:54:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKPwe-00040r-1F for qemu-devel@nongnu.org; Wed, 29 Jul 2015 07:54:50 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:32676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKPwd-0003zs-Rl for qemu-devel@nongnu.org; Wed, 29 Jul 2015 07:54:47 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NS800GZ4ZR9DU40@mailout3.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 29 Jul 2015 12:54:45 +0100 (BST) From: Pavel Fedin Date: Wed, 29 Jul 2015 14:54:41 +0300 Message-id: Subject: [Qemu-devel] [PATCH 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. 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 | 61 +++++++++++----------------------------- hw/intc/arm_gic_common.c | 37 ++++++++++++++++++++++++ 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, 79 insertions(+), 94 deletions(-) -- 1.9.5.msysgit.0