Commit a3cedb54 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Alexander Graf
Browse files

target-ppc: Use #define instead of opencoding SLB valid bit



Use SLB_ESID_V instead of (1 << 27) in the code

Reviewed-by: default avatarAndreas Färber <afaerber@suse.de>
Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 5dac82ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;