Received: from eggs.gnu.org ([2001:4830:134:3::10]:46269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddMoL-00026l-Jk for qemu-devel@nongnu.org; Thu, 03 Aug 2017 16:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddMoI-0002b4-2e for qemu-devel@nongnu.org; Thu, 03 Aug 2017 16:33:37 -0400 Sender: Richard Henderson References: <1501692241-23310-1-git-send-email-peter.maydell@linaro.org> <1501692241-23310-4-git-send-email-peter.maydell@linaro.org> From: Richard Henderson Message-ID: Date: Thu, 3 Aug 2017 13:33:30 -0700 MIME-Version: 1.0 In-Reply-To: <1501692241-23310-4-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 03/15] target/arm: Consolidate PMSA handling in get_phys_addr() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: patches@linaro.org On 08/02/2017 09:43 AM, Peter Maydell wrote: > Currently get_phys_addr() has PMSAv7 handling before the > "is translation disabled?" check, and then PMSAv5 after it. > Tidy this up by making the PMSAv5 code handle the "MPU disabled" > case itself, so that we have all the PMSA code in one place. > This will make adding the PMSAv8 code slightly cleaner, and > also means that pre-v7 PMSA cores benefit from the MPU lookup > logging that the PMSAv7 codepath had. > > Signed-off-by: Peter Maydell > --- > target/arm/helper.c | 38 ++++++++++++++++++++++---------------- > 1 file changed, 22 insertions(+), 16 deletions(-) Reviewed-by: Richard Henderson r~