From patchwork Fri Feb 10 05:25:52 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: 9565997 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 48555601EA for ; Fri, 10 Feb 2017 05:27:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F6F128537 for ; Fri, 10 Feb 2017 05:27:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 212B22853D; Fri, 10 Feb 2017 05:27:01 +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 AB1A628537 for ; Fri, 10 Feb 2017 05:27:00 +0000 (UTC) Received: from localhost ([::1]:41888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc3jV-00069l-RL for patchwork-qemu-devel@patchwork.kernel.org; Fri, 10 Feb 2017 00:26:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc3ix-000673-KQ for qemu-devel@nongnu.org; Fri, 10 Feb 2017 00:26:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc3iw-0001W5-O9 for qemu-devel@nongnu.org; Fri, 10 Feb 2017 00:26:23 -0500 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:35701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc3iu-0001Ub-KU; Fri, 10 Feb 2017 00:26:20 -0500 Received: by mail-pg0-x242.google.com with SMTP id 204so2200354pge.2; Thu, 09 Feb 2017 21:26:20 -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=j3ck9M05w7CogpVw8HaG0ZAUpNwpteC/um3uxc4mqokwXaay4BEL1PMdci4Or+IwKB 7WMcjyHL2kCEi79ZqMDD4flmoFs96rF/DnFmsblP4S+Ww/5RG6cgRAR1rZH6bhmDXo1x C1kPU5eJssnQkmOIbRy4IBFJsMR4dZ6WnSNlBSG1F4g/7uZzJIGWoJHxOxqCgKujeA9L n7Owv3dYa11WwjcbwiNn2huk/0ikTh9CuI/j/8a4KJk9dQfrgvyLwiEoMVmCZTgJN+G+ 1NFnOZBGHzo6lnZzY9JJmEHi5Tlf+sb7NTedowF8jtAUkpBVTG84waKPgyt+wcs5GcsE PqCw== 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=G6vOhPbazWFC+FoVIdjED8T7ly7HWu/BFrgEDs8Y3LBZEhEWXx45i6qPorlK0PI38B AMIHEYRnxm2hKgw13JdrLGb1q6vzHP9kmtSU8mX1wtfBTsbuodEVPsozENj3yXNkM5S3 3Mg92I8yCAh3AkMQvfpTkgUSdyc1fW2sXe1oF6j0A/JO0VudI3FZi54e1o1r35qEfpDL RKvZ+WUN6lz/XYx2pB6KkLQVrUWygZTLk6N59VWH095SmklLEkbWUe2HVIsmvDgt5rBf GTcvLNg4Jb1a3/L8WmA7gE9+BUoOYsUoylV/RdyiECEenEDC3nfhIebvUMhtOfAdSOhX AKkA== X-Gm-Message-State: AMke39l9QUx0VxAk4yo/hBBQpKuIUVJx4WlFyVjfpf4wtQvcpQC2t3zXz+Y3TSSEp4HbMA== X-Received: by 10.99.53.195 with SMTP id c186mr8422370pga.24.1486704379792; Thu, 09 Feb 2017 21:26:19 -0800 (PST) Received: from surajjs.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id r78sm1308298pfl.63.2017.02.09.21.26.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 21:26:18 -0800 (PST) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Fri, 10 Feb 2017 16:25:52 +1100 Message-Id: <1486704360-27361-3-git-send-email-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1486704360-27361-1-git-send-email-sjitindarsingh@gmail.com> References: <1486704360-27361-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::242 Subject: [Qemu-devel] [QEMU-PPC] [PATCH V2 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, Suraj Jitindar Singh , 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 --- 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)