Revision 6ebbf390 target-ppc/translate.c
b/target-ppc/translate.c | ||
---|---|---|
6693 | 6693 |
ctx.tb = tb; |
6694 | 6694 |
ctx.exception = POWERPC_EXCP_NONE; |
6695 | 6695 |
ctx.spr_cb = env->spr_cb; |
6696 |
#if defined(CONFIG_USER_ONLY) |
|
6697 |
supervisor = 0; |
|
6698 |
#else |
|
6699 |
#if defined(TARGET_PPC64H) |
|
6700 |
if (msr_pr == 0 && msr_hv == 1) |
|
6701 |
supervisor = 2; |
|
6702 |
else |
|
6703 |
#endif |
|
6704 |
supervisor = 1 - msr_pr; |
|
6696 |
supervisor = env->mmu_idx; |
|
6697 |
#if !defined(CONFIG_USER_ONLY) |
|
6705 | 6698 |
ctx.supervisor = supervisor; |
6706 | 6699 |
#endif |
6707 | 6700 |
#if defined(TARGET_PPC64) |
Also available in: Unified diff