From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBjVX-0002bo-To for qemu-devel@nongnu.org; Tue, 20 Aug 2013 06:49:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBjVP-0001nX-7J for qemu-devel@nongnu.org; Tue, 20 Aug 2013 06:49:51 -0400 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:39992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBjVO-0001mo-IZ for qemu-devel@nongnu.org; Tue, 20 Aug 2013 06:49:43 -0400 Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Aug 2013 16:09:35 +0530 From: "Aneesh Kumar K.V" Date: Tue, 20 Aug 2013 16:19:24 +0530 Message-Id: <1376995766-16526-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com> In-Reply-To: <1376995766-16526-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1376995766-16526-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH -V2 2/4] target-ppc: Use #define instead of opencoding SLB valid bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf , Alexey Kardashevskiy Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, "Aneesh Kumar K.V" From: "Aneesh Kumar K.V" Use SLB_ESID_V instead of (1 << 27) in the code Reviewed-by: Andreas Färber Signed-off-by: Aneesh Kumar K.V --- target-ppc/mmu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 5dd4e05..9c9132e 100644 --- a/target-ppc/mmu_helper.c +++ b/target-ppc/mmu_helper.c @@ -2061,7 +2061,7 @@ void helper_store_sr(CPUPPCState *env, target_ulong srnum, target_ulong value) /* ESID = srnum */ rb |= ((uint32_t)srnum & 0xf) << 28; /* Set the valid bit */ - rb |= 1 << 27; + rb |= SLB_ESID_V; /* Index = ESID */ rb |= (uint32_t)srnum; -- 1.8.1.2