projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dac82c
)
target-ppc: Use #define instead of opencoding SLB valid bit
author
Aneesh Kumar K.V
<aneesh.kumar@linux.vnet.ibm.com>
Tue, 20 Aug 2013 10:49:24 +0000
(16:19 +0530)
committer
Alexander 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
patch
|
blob
|
history
diff --git
a/target-ppc/mmu_helper.c
b/target-ppc/mmu_helper.c
index 5dd4e05f78f14bca71f132ed53bf4bc44670d33d..9c9132ea81f19e6d7931f8cd0d9fd6928db954ca 100644
(file)
--- 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;