From: Aneesh Kumar K.V Date: Tue, 20 Aug 2013 10:49:24 +0000 (+0530) Subject: target-ppc: Use #define instead of opencoding SLB valid bit X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~524^2~3^2~187^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3cedb541ca3ecc82040f597a4054419fdb22fa5;p=sdk%2Femulator%2Fqemu.git target-ppc: Use #define instead of opencoding SLB valid bit Use SLB_ESID_V instead of (1 << 27) in the code Reviewed-by: Andreas Färber Signed-off-by: Aneesh Kumar K.V Signed-off-by: Alexander Graf --- diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 5dd4e05f78..9c9132ea81 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;