From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBOah-00070t-7G for qemu-devel@nongnu.org; Mon, 19 Aug 2013 08:29:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBOaV-000251-Ko for qemu-devel@nongnu.org; Mon, 19 Aug 2013 08:29:47 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:47329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBOaU-00023d-US for qemu-devel@nongnu.org; Mon, 19 Aug 2013 08:29:35 -0400 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Aug 2013 17:53:05 +0530 From: "Aneesh Kumar K.V" Date: Mon, 19 Aug 2013 17:59:15 +0530 Message-Id: <1376915356-31011-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com> In-Reply-To: <1376915356-31011-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1376915356-31011-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 2/3] 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 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