From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSlbR-0004hC-Ah for qemu-devel@nongnu.org; Mon, 08 Feb 2016 08:11:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSlbL-0004Rs-PF for qemu-devel@nongnu.org; Mon, 08 Feb 2016 08:11:41 -0500 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:34752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSlbL-0004Rf-LL for qemu-devel@nongnu.org; Mon, 08 Feb 2016 08:11:35 -0500 Received: by mail-vk0-x22f.google.com with SMTP id e185so94502842vkb.1 for ; Mon, 08 Feb 2016 05:11:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <56B63EB1.8080905@gmail.com> References: <1454506721-11843-1-git-send-email-peter.maydell@linaro.org> <1454506721-11843-3-git-send-email-peter.maydell@linaro.org> <56B63EB1.8080905@gmail.com> From: Peter Maydell Date: Mon, 8 Feb 2016 13:11:14 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 2/7] target-arm: Implement MDCR_EL3 and SDCR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov Cc: "Edgar E. Iglesias" , qemu-arm , QEMU Developers , Patch Tracking On 6 February 2016 at 18:42, Sergey Fedorov wrote: > On 03.02.2016 16:38, Peter Maydell wrote: >> --- a/target-arm/helper.c >> +++ b/target-arm/helper.c >> @@ -364,6 +364,23 @@ static CPAccessResult access_el3_aa32ns_aa64any(CPUARMState *env, >> return CP_ACCESS_OK; >> } >> >> +/* Some secure-only AArch32 registers trap to EL3 if used from >> + * Secure EL1 (but are just ordinary UNDEF in other non-EL3 contexts). >> + * We assume that the .access field is set to PL1_RW. >> + */ > > Maybe we should also make a note that there is no secure EL1 if EL3 is > using AArch32 as it is done for ats_access()? I added a line to the comment: * Note that an access from Secure EL1 can only happen if EL3 is AArch64. thanks -- PMM