Skip to content

Commit

Permalink
target-ppc: Use #define instead of opencoding SLB valid bit
Browse files Browse the repository at this point in the history
Use SLB_ESID_V instead of (1 << 27) in the code

Reviewed-by: Andreas Färber <[email protected]>
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
kvaneesh authored and agraf committed Sep 2, 2013
1 parent 5dac82c commit a3cedb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-ppc/mmu_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a3cedb5

Please sign in to comment.