Received: from eggs.gnu.org ([2001:4830:134:3::10]:58641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6ywy-0004AC-Ev for qemu-devel@nongnu.org; Fri, 13 Apr 2018 09:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6ywx-0003S7-O9 for qemu-devel@nongnu.org; Fri, 13 Apr 2018 09:41:12 -0400 Date: Fri, 13 Apr 2018 15:41:00 +0200 From: Igor Mammedov Message-ID: <20180413154100.1731a448@redhat.com> In-Reply-To: References: <1523551221-11612-1-git-send-email-imammedo@redhat.com> <1523551221-11612-2-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.13 1/4] arm: reuse arm_boot_address_space() in armv7m_load_kernel() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , qemu-arm , Eric Auger On Thu, 12 Apr 2018 19:22:13 +0100 Peter Maydell wrote: > On 12 April 2018 at 17:40, Igor Mammedov wrote: > > reduce code duplication by resusing arm_boot_address_space() > > > > Signed-off-by: Igor Mammedov > > --- > > include/hw/arm/arm.h | 2 ++ > > hw/arm/armv7m.c | 10 +--------- > > hw/arm/boot.c | 16 ++++++++-------- > > 3 files changed, 11 insertions(+), 17 deletions(-) > > This minor duplication was deliberate, because hw/arm/armv7m.c > is for M profile cores only, and hw/arm/boot.c is for > A/R profile cores only. I don't think that saving a > single if/else in armv7m.c really justifies blurring > that dividing line. I'll drop patch on respin > thanks > -- PMM