From patchwork Tue Jun 7 10:48:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 9160329 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 50E4660777 for ; Tue, 7 Jun 2016 11:00:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EECF24151 for ; Tue, 7 Jun 2016 11:00:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 339FC28179; Tue, 7 Jun 2016 11:00:09 +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 BB65A24151 for ; Tue, 7 Jun 2016 11:00:08 +0000 (UTC) Received: from localhost ([::1]:48512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAEjv-00007k-Sd for patchwork-qemu-devel@patchwork.kernel.org; Tue, 07 Jun 2016 07:00:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAEYc-0006w1-04 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 06:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAEYY-00057A-Sb for qemu-devel@nongnu.org; Tue, 07 Jun 2016 06:48:25 -0400 Received: from ozlabs.org ([103.22.144.67]:36889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAEYY-00054R-HG; Tue, 07 Jun 2016 06:48:22 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3rP7Zp5m1Rz9t6D; Tue, 7 Jun 2016 20:48:17 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1465296498; bh=YJfS2PZp3NMbYlDn0JJSVmj9wfmPDq7dk168yoMnQVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dup8eRHcbt1CxuzFAly/QlK34a6BzziA4UvlL8KAT2mttPR8iYoBHLbxhp7cN05mZ HFMSAXLKYZVjQ3o3Cmituh4tJzTHG33qfZMh8WSRKmijCVDB/NQWhTV3/HEF6SeSbc YGZ1JegbqTh4TZxYrL2d6L/JaOQVtT9i49XfDx8o= From: David Gibson To: peter.maydell@linaro.org Date: Tue, 7 Jun 2016 20:48:10 +1000 Message-Id: <1465296493-10851-24-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1465296493-10851-1-git-send-email-david@gibson.dropbear.id.au> References: <1465296493-10851-1-git-send-email-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 103.22.144.67 Subject: [Qemu-devel] [PULL 23/26] ppc: Fix mtmsr decoding 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: David Gibson , qemu-ppc@nongnu.org, agraf@suse.de, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Benjamin Herrenschmidt We had code to handle the L bit in the opcode but we didn't allow it in the decode mask. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson --- target-ppc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 0c2239a..c7f5223 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -9944,7 +9944,7 @@ GEN_HANDLER(mtcrf, 0x1F, 0x10, 0x04, 0x00000801, PPC_MISC), #if defined(TARGET_PPC64) GEN_HANDLER(mtmsrd, 0x1F, 0x12, 0x05, 0x001EF801, PPC_64B), #endif -GEN_HANDLER(mtmsr, 0x1F, 0x12, 0x04, 0x001FF801, PPC_MISC), +GEN_HANDLER(mtmsr, 0x1F, 0x12, 0x04, 0x001EF801, PPC_MISC), GEN_HANDLER(mtspr, 0x1F, 0x13, 0x0E, 0x00000000, PPC_MISC), GEN_HANDLER(dcbf, 0x1F, 0x16, 0x02, 0x03C00001, PPC_CACHE), GEN_HANDLER(dcbi, 0x1F, 0x16, 0x0E, 0x03E00001, PPC_CACHE),