From patchwork Mon Feb 20 04:04:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Jitindar Singh X-Patchwork-Id: 9581967 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 346F2604A0 for ; Mon, 20 Feb 2017 04:06:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25CA828851 for ; Mon, 20 Feb 2017 04:06:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18FCC28857; Mon, 20 Feb 2017 04:06:48 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 9E43B28851 for ; Mon, 20 Feb 2017 04:06:47 +0000 (UTC) Received: from localhost ([::1]:35967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cffFO-0001IO-Iu for patchwork-qemu-devel@patchwork.kernel.org; Sun, 19 Feb 2017 23:06:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cffDd-0008UJ-Aw for qemu-devel@nongnu.org; Sun, 19 Feb 2017 23:05:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cffDc-0002Wb-Bc for qemu-devel@nongnu.org; Sun, 19 Feb 2017 23:04:57 -0500 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:36623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cffDa-0002V6-7l; Sun, 19 Feb 2017 23:04:54 -0500 Received: by mail-pg0-x243.google.com with SMTP id a123so8398139pgc.3; Sun, 19 Feb 2017 20:04:54 -0800 (PST) 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=ocJzN6UsnrJOUPHIcR9uy2pD3nLE9ifzGAzc5XEBoJw=; b=lwbHwmHkiweLLBQJcfxZJbVdwioLSr5zgRjI20RqPSAMH2VPeIx5lRmMVwh5vJ40si HPJXucknc3bYXXSGVV+hGF4YNIq85R9TxfQNkafQ0DFr/R10b6X+7wTJ0XN/eWvUaQ/l dxnUdXTdX5NjZCjCMSDJJoRTwP8Kff+kiJAzktK2Sic6mjcJPIec2tmUq4siOONPOkxX mOX88ZQxDREPPmwXg6iHTKGiHnPK03v86BKjHADAJV51ooFWpTKLgM3Q6bf5tSYWwwsG bcFgw7p6lGNWKj+nXcEuLeEY9fxKadfOHo1r1p5W3/J+AOanfiU+a09dPWe1wd2j9RLb GMxw== 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=ocJzN6UsnrJOUPHIcR9uy2pD3nLE9ifzGAzc5XEBoJw=; b=W7XjL5aUF0tpgqims2F/A8ga5XzWKt6ZRMRu1UsAG717OQu/yVFD7m79L9KTMt0yPi En4amy+54vFCSOCHTuarHW66ygT8/qTlz7xbKKRpG8OcLVMHJTj217Aq2vx2MYkvzIeE KHMdk83/VRHwStxG+o2umcuCdqKy0+mGJROvOGVvTNAYEu3Bbwwfxv1wcBwz65yFLgYA oCOiUY3loHzqkwGXxNzvNP6IO24Oawc4aBia8lfgv29DlIG1CMrlWBfqU6nvhJcF2TSA nSTrl7G0wheXxHaU+L4E5Nq+kYCQl3lSvvSZuCd1PgrvKa2Lbmzu2QAb3kw+KFgTMgpb QQ4Q== X-Gm-Message-State: AMke39k6x4k5e4bUEiviJ7mL3LXVE4JWBVpCqOp94iw2M9wZv53cOs3lxtwX3JQbiQ9Zgg== X-Received: by 10.98.87.142 with SMTP id i14mr23391356pfj.85.1487563493454; Sun, 19 Feb 2017 20:04:53 -0800 (PST) Received: from surajjs.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id d78sm31622707pfb.43.2017.02.19.20.04.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 20:04:52 -0800 (PST) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Mon, 20 Feb 2017 15:04:30 +1100 Message-Id: <1487563478-22265-3-git-send-email-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1487563478-22265-1-git-send-email-sjitindarsingh@gmail.com> References: <1487563478-22265-1-git-send-email-sjitindarsingh@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::243 Subject: [Qemu-devel] [QEMU-PPC] [PATCH V3 02/10] target/ppc: Fix LPCR DPFD mask define 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: qemu-devel@nongnu.org, sjitindarsingh@gmail.com, agraf@suse.de, sam.bobroff@au1.ibm.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The DPFD field in the LPCR is 3 bits wide. This has always been defined as 0x3 << shift which indicates a 2 bit field, which is incorrect. Correct this. Signed-off-by: Suraj Jitindar Singh Acked-by: Balbir Singh --- target/ppc/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index bc2a2ce..bb96dd5 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -381,7 +381,7 @@ struct ppc_slb_t { #define LPCR_ISL (1ull << (63 - 2)) #define LPCR_KBV (1ull << (63 - 3)) #define LPCR_DPFD_SHIFT (63 - 11) -#define LPCR_DPFD (0x3ull << LPCR_DPFD_SHIFT) +#define LPCR_DPFD (0x7ull << LPCR_DPFD_SHIFT) #define LPCR_VRMASD_SHIFT (63 - 16) #define LPCR_VRMASD (0x1full << LPCR_VRMASD_SHIFT) #define LPCR_RMLS_SHIFT (63 - 37)