From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVMSh-0005Ej-Lw for qemu-devel@nongnu.org; Tue, 10 Mar 2015 11:52:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVMSd-0000y6-9H for qemu-devel@nongnu.org; Tue, 10 Mar 2015 11:52:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVMSd-0000xh-23 for qemu-devel@nongnu.org; Tue, 10 Mar 2015 11:52:47 -0400 Date: Tue, 10 Mar 2015 16:52:39 +0100 From: Andrew Jones Message-ID: <20150310155238.GA6320@hawk.usersys.redhat.com> References: <1423753507-30542-1-git-send-email-drjones@redhat.com> <1423753507-30542-2-git-send-email-drjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 1/5] target-arm: convert check_ap to get_rw_prot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On Tue, Mar 10, 2015 at 03:12:20PM +0000, Peter Maydell wrote: > On 12 February 2015 at 15:05, Andrew Jones wrote: > > + *prot = get_rw_prot(env, mmu_idx, ap, domain_prot); > > + *prot |= *prot && !xn ? PAGE_EXEC : 0; > > I'm not a great fan of complicated ?: expressions, incidentally; > I think this is clearer to read as > if (*prot && !xn) { > *prot |= PAGE_EXEC; > } > > -- PMM OK, I'll change it if we need a v2. Thanks, drew