From patchwork Wed May 16 18:51:27 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: 10404713 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 E4EC1601C8 for ; Wed, 16 May 2018 19:08:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB01228607 for ; Wed, 16 May 2018 19:08:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF8FF28613; Wed, 16 May 2018 19:08:30 +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 7B5FC28607 for ; Wed, 16 May 2018 19:08:29 +0000 (UTC) Received: from localhost ([::1]:34270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1mm-00082Y-N7 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 16 May 2018 15:08:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1XB-0003H9-Ox for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1XA-0000oB-Lp for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:21 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:53708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ1XA-0000ns-EW for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:20 -0400 Received: by mail-wm0-x241.google.com with SMTP id a67-v6so3839013wmf.3 for ; Wed, 16 May 2018 11:52:20 -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=xrBRk7Rln4ByM9Gx/uuZBTHV/ZtJJE64GlBhmA2iQAk=; b=mMdZndQ4Dq78kA+Ft8Sfde3zTrQ4t7VIylq/8gHcCs+HlKVCvvVHxRZ2U8RH58Plx7 ifzryIav70zwbGKzaNy5fwkYCj7nnCo/EhvzzLEIk8+hfhn6/rND84XAh5ma/A3N/KCm Nf/qy7oz/DZCMDx3OXY6Vy+8kIvS608xbVKAZukGNPAF/uK1TVojpI63ab2Sr4AtxPNc xp9b9huRR4YNadjO18TM/gU9OCI0/+w4tTo2brI9HKnBJTV61ZZv4KkoTETwzBRPZ5SN b3bCQmdZmnRCpu95ssso2c4w1zgZ6ItySjlyWPXXs/o7QFxQue5cZCbc/bLeCESEghXT VJeQ== 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=xrBRk7Rln4ByM9Gx/uuZBTHV/ZtJJE64GlBhmA2iQAk=; b=bBobVqj3gg41OlK2UDLOh7r/lzD587rr06k9uWelUsJr2nnq+phhGbnwvlUW6Kwu4z BhIsHuUc2NqeDAWdvJUskOJT/2rgB87MYtKZ856bR4Bly3sDMNtdh13imU6gkNLUs1O9 mfrybaQPxuPE7/GI8d4fZ0IGcY7GxM+7gGWEcZcd3KsuQQ0wHtuCqIyl8UPyY+RBY5+M Gzx0PKtDOZ6/K1R7ln5o197We6Ymr0FDo9bQnjLUPbdN/hmuloxV9mbPgK5GaOanv3On 1vGIo7nRgb+g0w2Th29VH82EVuyI3rXsZZqEPG7kq4n4fjI3a1/ZU/t+dzl/R0UClOQJ HqJQ== X-Gm-Message-State: ALKqPwfoDH0PS2TxfXqOA6BTRB+XaX9FGcvpEe+1ML8nZEPRPtrYj70N iHgDgE/z9bSeYg3/kFwTM0zKnQ== X-Google-Smtp-Source: AB8JxZrGbM+tb0r+zTcvXvZiXO+M22ZjNArGA69eIR6FkTeQtKQ6WvNzeZ5gHn1K1YyPJ5uTxfCNGw== X-Received: by 2002:a2e:985a:: with SMTP id e26-v6mr1233514ljj.124.1526496739104; Wed, 16 May 2018 11:52:19 -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 h5-v6sm775516lfc.8.2018.05.16.11.52.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:52:18 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:27 +0200 Message-Id: <20180516185146.30708-20-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:c09::241 Subject: [Qemu-devel] [PATCH v3 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, 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" 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 675db78030..528450a8e2 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));