From patchwork Tue May 29 10:49:52 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: 10435013 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 43C59604D4 for ; Tue, 29 May 2018 11:16:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3456B28305 for ; Tue, 29 May 2018 11:16:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E3D8286EC; Tue, 29 May 2018 11:16:31 +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=-3.8 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 EAC21286E3 for ; Tue, 29 May 2018 11:16:29 +0000 (UTC) Received: from localhost ([::1]:60230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcc9-0004OD-79 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 May 2018 07:16:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcDG-0001Y4-QG for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNcDF-00043J-U2 for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:46 -0400 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:44546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNcDF-00042s-Mt for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:45 -0400 Received: by mail-wr0-x236.google.com with SMTP id y15-v6so24693169wrg.11 for ; Tue, 29 May 2018 03:50:45 -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=j/JijYHshyuFgdzhlDHNDCj3gS11pDBX/59HGg4E4Vc=; b=CG4nFx3TcvWDdcAgQ7GCslHOV03pKctIYrOlqiRGrlrXv1soRALgPn3AKAeTKHNpl0 wfJQ3HqTcDKpBMuI+9hwdjFRGMEgnB6tdpJq+/Z8qgXKkyXIJICeJ8FcqeDCOQ1fSxWG d2dIIQ6sjzf8kP4ZzKBPoKk0HEizycxNVP14ZD8dKstFX5R/NTCLuSW4claQuWfLT5XO /wHKBC/O7YWghi2fjhrAdSw39PiYfxYlHHldByIJ6mG7v4jMPOmkHZQ1iP4fTLr6ZHku EBifXLnj3zHl6m89XCS1S7+wySi9riH87Gq1n5+jiBlziqyUXOSwSCi+cmcaGKBl8GoD OM8A== 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=j/JijYHshyuFgdzhlDHNDCj3gS11pDBX/59HGg4E4Vc=; b=BpBVtw0rbvH+WKYlUSsqc2xEm8QpirFlAMB6roa2/0S2/tvwL7CWLtb+K0/ki80yL6 UgaVTucMJYJy6aGkAzmrqI0bTkUsMp2rFsopmwtYFmj5lPSMlE3yRkjjvC3l29N3PSBn +cLn7uZTjlu0LmbziLc6il/+b8LVw/3TKGV0sELw/F/xV54r0xiXh581F+YzsH9Zsk2n QMqfWbyyZsBD8f0VV+UdkuG0eil+jJ8lT2RAhWJs6w9lLAp9E+lug6EPCEqvgY1NOtdC EXEi5e+d5+yh2ItyTxOVgW9uStakMVSTQTYz1sM2oV8Apu55fpH0b2xDnaEP4/JQdH7p hF3g== X-Gm-Message-State: ALKqPwdjpBAv3ylvDXOR5StDwY/ZuTlQARIywAVxKniy2WW+mJrovsnZ 6jCiYDjCkUSpAWMSb7t3WWf7LQ== X-Google-Smtp-Source: ADUXVKK1fj7buw50oe8QP4j8YtNV3/BMhP0zQnk3ILXF0P6jJkVnH/rVQi4EkfhwYTCqyLzx/AgMBQ== X-Received: by 2002:a19:7383:: with SMTP id h3-v6mr8775768lfk.115.1527591044314; Tue, 29 May 2018 03:50:44 -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 f26-v6sm6295994lje.69.2018.05.29.03.50.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 03:50:43 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 12:49:52 +0200 Message-Id: <20180529105011.1914-20-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180529105011.1914-1-edgar.iglesias@gmail.com> References: <20180529105011.1914-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::236 Subject: [Qemu-devel] [PULL v1 19/38] target-microblaze: dec_msr: Fix MTS to FSR 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 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" Fix moves to FSR. Not only bit 31 is accessible. Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 6a270fbece..6f2cafa88a 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -533,11 +533,9 @@ static void dec_msr(DisasContext *dc) break; case SR_EAR: case SR_ESR: + case SR_FSR: tcg_gen_mov_i32(cpu_SR[sr], cpu_R[dc->ra]); break; - case 0x7: - tcg_gen_andi_i32(cpu_SR[SR_FSR], cpu_R[dc->ra], 31); - break; case 0x800: tcg_gen_st_i32(cpu_R[dc->ra], cpu_env, offsetof(CPUMBState, slr));