From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ6Bi-0003tS-5j for qemu-devel@nongnu.org; Wed, 16 May 2018 19:50:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ6Bh-0002Ax-0c for qemu-devel@nongnu.org; Wed, 16 May 2018 19:50:29 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:37961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ6Bg-00029x-C6 for qemu-devel@nongnu.org; Wed, 16 May 2018 19:50:28 -0400 Received: by mail-lf0-x244.google.com with SMTP id z142-v6so5998242lff.5 for ; Wed, 16 May 2018 16:50:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180516185146.30708-38-edgar.iglesias@gmail.com> References: <20180516185146.30708-1-edgar.iglesias@gmail.com> <20180516185146.30708-38-edgar.iglesias@gmail.com> From: Alistair Francis Date: Wed, 16 May 2018 16:49:56 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH v3 37/38] target-microblaze: cpu_mmu_index: Fixup indentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: "qemu-devel@nongnu.org Developers" , Edgar Iglesias , Peter Maydell , Stefano Stabellini , Sai Pavan Boddu , Francisco Iglesias , Alistair Francis , Richard Henderson , KONRAD Frederic On Wed, May 16, 2018 at 11:51 AM, Edgar E. Iglesias wrote: > From: "Edgar E. Iglesias" > > Fixup the indentation of cpu_mmu_index in preparation for > future edits. > No functional changes. > > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > target/microblaze/cpu.h | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) > > diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h > index e38580cd7f..c77ca2d8f9 100644 > --- a/target/microblaze/cpu.h > +++ b/target/microblaze/cpu.h > @@ -360,13 +360,15 @@ int cpu_mb_signal_handler(int host_signum, void *pinfo, > > static inline int cpu_mmu_index (CPUMBState *env, bool ifetch) > { > - /* Are we in nommu mode?. */ > - if (!(env->sregs[SR_MSR] & MSR_VM)) > - return MMU_NOMMU_IDX; > - > - if (env->sregs[SR_MSR] & MSR_UM) > - return MMU_USER_IDX; > - return MMU_KERNEL_IDX; > + /* Are we in nommu mode?. */ > + if (!(env->sregs[SR_MSR] & MSR_VM)) { > + return MMU_NOMMU_IDX; > + } > + > + if (env->sregs[SR_MSR] & MSR_UM) { > + return MMU_USER_IDX; > + } > + return MMU_KERNEL_IDX; > } > > int mb_cpu_handle_mmu_fault(CPUState *cpu, vaddr address, int size, int rw, > -- > 2.14.1 > >