From patchwork Wed Mar 21 20:46:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10300407 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 7997460386 for ; Wed, 21 Mar 2018 21:02:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 630F627D29 for ; Wed, 21 Mar 2018 21:02:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 572C028475; Wed, 21 Mar 2018 21:02:04 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 BBF4D27D29 for ; Wed, 21 Mar 2018 21:02:03 +0000 (UTC) Received: from localhost ([::1]:57426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eykry-0007BA-TW for patchwork-qemu-devel@patchwork.kernel.org; Wed, 21 Mar 2018 17:02:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eykeV-00027w-Iz for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:48:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eykeU-0002A3-Od for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:48:07 -0400 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:39650) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eykeU-00029o-Il for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:48:06 -0400 Received: by mail-pf0-x242.google.com with SMTP id u5so2461058pfh.6 for ; Wed, 21 Mar 2018 13:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UtDHM0IFsJP/nABkeJHaAyxMd9mnBAmwGcugxkD3tLA=; b=ic20WjbKM9a44Yhl7By7env0+pg4LqjPW5wRSJlLSY1nrOCTaWbL05NDAggDQ1oXiC HDbxDCk7z26+NA871zQtX3OB6Y+p5g9QFa4CZLiSYAYS9Ivg2xvLS6hL1BIbHKgIjTcV mSTqz1YhvznKrYQwxSWkBuk2IGkgNGDbYrNJeqKd+DihLH3u5xJpFhogoBakPSPqOLAY 1jQ456HWhbzR2OshIX1oIBVU8jfEHWbAqpMtzpMa6bR9LsGECYRDpcG2PBd8JKsUpUvg a/vK6uQj/m3D1HOuLYgXyC3zTI69nPcgyUOzbyKeJar3+9EqTxwv/KO28o3udbPfuufj 5YPA== 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:mime-version:content-transfer-encoding; bh=UtDHM0IFsJP/nABkeJHaAyxMd9mnBAmwGcugxkD3tLA=; b=TnaNnYmbLkfUIIQwBNwgCZRpwnvlxHB6IY/z0KoCK9oSAcP+Y3+KMbpGvzymyGfd7C 5zdk/4hlaHFj71cAzmStVYKJThdXYPEcP0GcoPZ/2uiBc6suvGc90H8U0LxQGpPZ1idB fT0MFQC6FGAsnD4yWhH414jb7pL33Sjvzf+t8Na38mJ2LAJO9FyJE3yxsPtljb8knueA o/757Tf49REPXomjXmj3F9dKd4xdqSiouSdFL3k2Gw0KGlWKjU6EOQuiTyIovYVEG20X ukpwwGzfKBLAeMgRw01A3T3kH42bAnmIOR9BsUNxilT74MXtpgYrEJAptdSV7DRmwbar tpOQ== X-Gm-Message-State: AElRT7EUzcwGEMTdqQntc3r3ND/i9m22vjlPwUK3jL4Tefec4bTaTnpG 55hD0inFs/CevZeuzXaNGHFkWh5h93w= X-Google-Smtp-Source: AG47ELtSjJHbjskdbmcEkI4Juevv4NDZE0qLO814A5tcMOJPOFLw84+vm49nxgSDs/gYX2aHxU3Rew== X-Received: by 10.99.164.18 with SMTP id c18mr7249333pgf.85.1521665285593; Wed, 21 Mar 2018 13:48:05 -0700 (PDT) Received: from monty.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id w10sm8244499pgr.57.2018.03.21.13.48.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Mar 2018 13:48:05 -0700 (PDT) From: Michael Clark To: qemu-devel@nongnu.org Date: Wed, 21 Mar 2018 13:46:53 -0700 Message-Id: <1521665220-3869-18-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1521665220-3869-1-git-send-email-mjc@sifive.com> References: <1521665220-3869-1-git-send-email-mjc@sifive.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::242 Subject: [Qemu-devel] [PULL 17/24] RISC-V: Remove braces from satp case statement 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: patches@groups.riscv.org, Michael Clark , Palmer Dabbelt , Sagar Karandikar , Bastian Koppelmann Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Cc: Sagar Karandikar Cc: Bastian Koppelmann Signed-off-by: Michael Clark Signed-off-by: Palmer Dabbelt Reviewed-by: Philippe Mathieu-Daudé --- target/riscv/op_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c index dd3e417..f79716a 100644 --- a/target/riscv/op_helper.c +++ b/target/riscv/op_helper.c @@ -240,7 +240,7 @@ void csr_write_helper(CPURISCVState *env, target_ulong val_to_write, csr_write_helper(env, next_mie, CSR_MIE); break; } - case CSR_SATP: /* CSR_SPTBR */ { + case CSR_SATP: /* CSR_SPTBR */ if (!riscv_feature(env, RISCV_FEATURE_MMU)) { break; } @@ -258,7 +258,6 @@ void csr_write_helper(CPURISCVState *env, target_ulong val_to_write, env->satp = val_to_write; } break; - } case CSR_SEPC: env->sepc = val_to_write; break;