From patchwork Fri Mar 9 04:12:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10269649 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 3BF4C602BD for ; Fri, 9 Mar 2018 04:24:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2405429C70 for ; Fri, 9 Mar 2018 04:24:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16E9029CB5; Fri, 9 Mar 2018 04:24:54 +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 979A729C70 for ; Fri, 9 Mar 2018 04:24:53 +0000 (UTC) Received: from localhost ([::1]:43147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu9aO-0004D5-R9 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 08 Mar 2018 23:24:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu9Qx-0004YW-FM for qemu-devel@nongnu.org; Thu, 08 Mar 2018 23:15:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eu9Qu-000786-9F for qemu-devel@nongnu.org; Thu, 08 Mar 2018 23:15:07 -0500 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:39670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eu9Qu-00077g-3k for qemu-devel@nongnu.org; Thu, 08 Mar 2018 23:15:04 -0500 Received: by mail-pl0-x243.google.com with SMTP id s13-v6so4604663plq.6 for ; Thu, 08 Mar 2018 20:15:04 -0800 (PST) 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=Tga7JO13gnNxsUf2kpgx2QYrXrKmDGHKHhyY3d1ZAKmx5CWTpBqSAkW4QBwikVDvUA dVAKoyl10JCCDk1hoxBJVn94IRkgWIM7ZL9tfwCm5whzv/LdwBc7t2ASHgPdKw/DX8Sg LH39pzcBLypBTk/2zNArBPQk1kvE4F4QdYnzfKDBJ0XOlm2BLgcX290hnxSDVV/wCgl6 hlXyCvC/OJGVSko0aXpUvebkWQ0ILn43ZdLXJbEEzOdC3kDaSsTNfbeU28JgW1uUPaI7 LBrqcH56ghorhbCXfUltr4g+wepDIVrWWiEEvkXyveHtKpX+3vnRwutRhMRq9Z7izNH0 XqGw== 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=QMuOoecL+BjOfSVmTLFodumeeQ0bPApAbRibpRckrCzPHHLTeSADtbsKkoZLgrhGEE Mg0zkT2BEFrtqPCeJq7hLKKB3IZXISJo0qt7Uk72B6GaJDu8ez0pyhkc7hWNvvRhlDeg YW3Vbhc98smVHZ8kox6v1oOiVsIRZhkVK24olQYnCt9OoG0jIaRk+Wm+q90bWfwsQDet WUcVUpiMk+5IW+3pT6eXkhjStEfuMi1LAjQvNoWtrm5Ltx/v0v+vJKe9JzoBvxLnS6La juea061q+WIKHxTyG1gNDGDbH1oUh0/1bupepcCC7Ivo6koYJQ3x8XF9FNAn7LyBto2W pB+A== X-Gm-Message-State: AElRT7GbTjNw8NvDjnwTUbMFBGHh/77dK3u8GbQhidQ92oO3K4nvfdHH tZHEfL8st2DHnrjCt+Z1HKwjyRopyIg= X-Google-Smtp-Source: AG47ELvRxfg28oluYUpiZO7SN2TssHwdsGkaN1fCmQP4FbAW2h83Ju3trFZ9LRpxkJ8thGSC5i7ASA== X-Received: by 2002:a17:902:6bcc:: with SMTP id m12-v6mr1537471plt.101.1520568903263; Thu, 08 Mar 2018 20:15:03 -0800 (PST) Received: from localhost.localdomain (125-237-39-90-fibre.bb.spark.co.nz. [125.237.39.90]) by smtp.gmail.com with ESMTPSA id h15sm334141pfi.56.2018.03.08.20.15.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Mar 2018 20:15:02 -0800 (PST) From: Michael Clark To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:12:40 +1300 Message-Id: <1520568765-58189-19-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1520568765-58189-1-git-send-email-mjc@sifive.com> References: <1520568765-58189-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:c01::243 Subject: [Qemu-devel] [PATCH v2 18/23] 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: Bastian Koppelmann , Michael Clark , Palmer Dabbelt , Sagar Karandikar 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;