target-ppc: Use #define instead of opencoding SLB valid bit
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 20 Aug 2013 10:49:24 +0000 (16:19 +0530)
committerAlexander Graf <agraf@suse.de>
Mon, 2 Sep 2013 08:06:42 +0000 (10:06 +0200)
Use SLB_ESID_V instead of (1 << 27) in the code

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/mmu_helper.c

index 5dd4e05f78f14bca71f132ed53bf4bc44670d33d..9c9132ea81f19e6d7931f8cd0d9fd6928db954ca 100644 (file)
@@ -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;