From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVLpv-00021P-HN for qemu-devel@nongnu.org; Tue, 10 Mar 2015 11:12:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVLps-0000mq-Ln for qemu-devel@nongnu.org; Tue, 10 Mar 2015 11:12:47 -0400 Received: from mail-la0-f51.google.com ([209.85.215.51]:33110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVLps-0000mm-Fc for qemu-devel@nongnu.org; Tue, 10 Mar 2015 11:12:44 -0400 Received: by labmn12 with SMTP id mn12so2458818lab.0 for ; Tue, 10 Mar 2015 08:12:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1423753507-30542-2-git-send-email-drjones@redhat.com> References: <1423753507-30542-1-git-send-email-drjones@redhat.com> <1423753507-30542-2-git-send-email-drjones@redhat.com> From: Peter Maydell Date: Tue, 10 Mar 2015 15:12:20 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 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: Andrew Jones Cc: QEMU Developers 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