From patchwork Mon Mar 19 21:18:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10295307 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 75F0A60385 for ; Mon, 19 Mar 2018 21:38:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65BAB2923D for ; Mon, 19 Mar 2018 21:38:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59DDF29463; Mon, 19 Mar 2018 21:38:06 +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 D7E4929449 for ; Mon, 19 Mar 2018 21:38:02 +0000 (UTC) Received: from localhost ([::1]:44080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey2Th-0007ug-OQ for patchwork-qemu-devel@patchwork.kernel.org; Mon, 19 Mar 2018 17:38:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey2CI-0001Vf-7p for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:20:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ey2CE-0002jM-Bg for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:20:02 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:45127) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ey2CE-0002iy-3x for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:19:58 -0400 Received: by mail-pf0-x244.google.com with SMTP id l27so3030827pfk.12 for ; Mon, 19 Mar 2018 14:19:57 -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=a5durCt/WW4k7QU+bFqo+AZ+CrtRJ/9NMppVX68UrzJY555CznTN7cMtq95uo5LsiA tmMiFzVCh1A6QteYdGy3+whPnihYxERyAnkPBgYv5mTH7eWW+sUOMmYWqsP+urwKM+WZ zaJSej9BBDCfIwUvSFcBuB0TlQJCz6fiMn/vAsAABPXga1N5M01xyUyk6NTQ6MuCyITD eM0vc3BFVfqianeLKTmTYJYGyFmzd49L+s+8j2Q0IWDZZcpXPdiXhmJKXcdNc5xYCXMu Dm2wfsLWpeMn7OwXPv1R8mPpHdipf2AeR88oju9v2rMj3rtsiPFuUkVcsBQVf2MgnDmE j0lQ== 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=ajh4weIqbhsc2dW5+6ZDeZ9VpQyY5p+NdiFUWY3wYtfzKMwkFikSgnXFKUcs1GlbE2 wn7/UoIEZZn501nd+j4qEG/S0pjpsJ8NKAtuhaq3LghwQ3ewa8ftoWY9IhhWakfeyGGV LJ1Imvhy36bhereAPe4x5CfBg/RiqAVd0OYY3EKn1yPri21KRKa0ECJlqflNj0YptFha BNG0lrQ5IVHQ2fbxjsM5Hr8ltNEYlWPVlMoHjHsc6axcCxw51sHYFOMU0wQptxf4e2Z4 //k26ArZqGWAtj6IxG8UkQh5P5Ak4s5/S7GT2L61bZkvEfHD+ocCh2o/AmGBl6tJYNZJ bTvQ== X-Gm-Message-State: AElRT7HQgHhrmqOX9+EvSL2p8TqXpMrF14Tp7ySaCb6d6AuNbQr0JMSf ZfLnREErLdu/7RmCwDcobm/6bWNSTFw= X-Google-Smtp-Source: AG47ELsHZ9CsPNl3K+uHdwtTu3974U12C8oXW7ppI/huibAxqmcmTisEcJ1MqkT9bQf1tKmKo/RjKg== X-Received: by 10.99.107.6 with SMTP id g6mr10342518pgc.109.1521494396917; Mon, 19 Mar 2018 14:19:56 -0700 (PDT) Received: from monty.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id i127sm120500pfc.136.2018.03.19.14.19.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Mar 2018 14:19:56 -0700 (PDT) From: Michael Clark To: qemu-devel@nongnu.org Date: Mon, 19 Mar 2018 14:18:41 -0700 Message-Id: <1521494329-19546-19-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1521494329-19546-1-git-send-email-mjc@sifive.com> References: <1521494329-19546-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::244 Subject: [Qemu-devel] [PATCH v4 18/26] 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;