Revision b172c56a target-ppc/helper_regs.h
b/target-ppc/helper_regs.h | ||
---|---|---|
60 | 60 |
|
61 | 61 |
static always_inline void hreg_compute_mem_idx (CPUPPCState *env) |
62 | 62 |
{ |
63 |
#if defined (TARGET_PPC64H)
|
|
63 |
#if defined (TARGET_PPC64) |
|
64 | 64 |
/* Precompute MMU index */ |
65 | 65 |
if (msr_pr == 0 && msr_hv != 0) |
66 | 66 |
env->mmu_idx = 2; |
... | ... | |
78 | 78 |
(1 << MSR_PR) | (1 << MSR_FP) | (1 << MSR_SE) | (1 << MSR_BE) | |
79 | 79 |
(1 << MSR_LE); |
80 | 80 |
#if defined (TARGET_PPC64) |
81 |
hflags_mask |= (1ULL << MSR_CM) | (1ULL << MSR_SF); |
|
82 |
#if defined (TARGET_PPC64H) |
|
83 |
hflags_mask |= 1ULL << MSR_HV; |
|
84 |
#endif |
|
81 |
hflags_mask |= (1ULL << MSR_CM) | (1ULL << MSR_SF) | (1ULL << MSR_HV); |
|
85 | 82 |
#endif |
86 | 83 |
hreg_compute_mem_idx(env); |
87 | 84 |
env->hflags = env->msr & hflags_mask; |
Also available in: Unified diff