From patchwork Wed May 16 18:51:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 10404763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9492B601F9 for ; Wed, 16 May 2018 19:31:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 802F028806 for ; Wed, 16 May 2018 19:31:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79351287E2; Wed, 16 May 2018 19:31:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_FAKE, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3976928812 for ; Wed, 16 May 2018 19:31:28 +0000 (UTC) Received: from localhost ([::1]:35310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ291-0002AM-T7 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 16 May 2018 15:31:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1Xd-0003hV-5E for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1Xc-00013i-D8 for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:49 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:36100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ1Xb-00013F-Uw for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:48 -0400 Received: by mail-wr0-x241.google.com with SMTP id p4-v6so2786966wrh.3 for ; Wed, 16 May 2018 11:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7c5Z1NDEea4tA0GxAXkG6P1tOk96rGvImo60PqXITXE=; b=HmWuxA8aaqPeqcYdjyPHITWzouPAaCj0WldEUex6p9VnsJmnXhUO1WNWDzi/2Cn5b/ m95NbVNQ9LcvJeWXjUP/otoztEc12cKKlvrPqc8/ela3RNt1nCBqono3Vtg94upTCdXY 43IFHjXxUJf6iw87ajNaAcWHaEi1HbOE17XaUQJ6H8JXBR7Nh9a0i/N1boiuoprKCwN5 ddNPvdBE2kpgEhQ5RbXiSdoXWIzROQqmBaJGNBZ7QmJP3Y/tgztg6p74DMiK8f583Z0P 5LNXirQtvMUwecbNlnwp0/UzgIK2Oa0YSWfN44+G2ecyXYco4mBMFnmbKf75Q8cVwHcm LnNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7c5Z1NDEea4tA0GxAXkG6P1tOk96rGvImo60PqXITXE=; b=WFHkRFgJUtRgvPXX6uA2ApY4eMbhUS9Mh9PyONojNBcy40F9CNABPP4E0oxrVugRcB O9Rjix1t2J1kuqljmrV9p0Euz/kMpShgHcCi+P4ebDxzVLzbu4wYb7zYSzkdtT0emrhV o+NH4wVv38LLdJKNi7F3FlMVsiIhjCa1hiVS5GG/F7f6fubpVs0spboYHvZnUG+pE94g r795j4SgkhC2dvJoSw/1nKuYG2z12E7erGvNcrBYtjldo/6KPwjOUVDJqtOBwxqCTyc8 HHePPJ51EZFJDKee6bESC/WBkLuwaCH9skLUFEKEbtsP2vkf3HsHbjCw5MlydATjJKMw uJlQ== X-Gm-Message-State: ALKqPwe6GckT/Dz0qkGGki/807TrYq3+aa0yZ4+VhAztAdfAFwmdoWlq gBFKPBgsfmL8o9iMiIsiSCdFYQ== X-Google-Smtp-Source: AB8JxZqSlngR/AVHwUbD3KV0uRHo/EEwiNYh0eWDjn0vwXRGQKqI4DmihJe16cTEa7ef6d94EgO1Fg== X-Received: by 2002:a19:10e1:: with SMTP id 94-v6mr16519442lfq.145.1526496766590; Wed, 16 May 2018 11:52:46 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id x66-v6sm463371lfb.47.2018.05.16.11.52.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:52:45 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:45 +0200 Message-Id: <20180516185146.30708-38-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180516185146.30708-1-edgar.iglesias@gmail.com> References: <20180516185146.30708-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 37/38] target-microblaze: cpu_mmu_index: Fixup indentation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sstabellini@kernel.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Richard Henderson --- 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,