qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/5] target-arm: convert check_ap to get_rw_prot


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 1/5] target-arm: convert check_ap to get_rw_prot
Date: Tue, 10 Mar 2015 15:12:20 +0000

On 12 February 2015 at 15:05, Andrew Jones <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]