diff options
author | Richard Henderson <rth@twiddle.net> | 2011-05-20 14:14:44 -0700 |
---|---|---|
committer | Richard Henderson <rth@anchor.twiddle.net> | 2011-05-31 10:18:05 -0700 |
commit | bba9bdcee8d4acc4e5f243f40d015a5a30493faa (patch) | |
tree | c512d089524c5a78eb5e9000a784e3dea0204901 /target-alpha/translate.c | |
parent | ea879fc719b0756f1768f765ee3a5660ce05ca7b (diff) | |
download | qemu-bba9bdcee8d4acc4e5f243f40d015a5a30493faa.zip qemu-bba9bdcee8d4acc4e5f243f40d015a5a30493faa.tar.gz qemu-bba9bdcee8d4acc4e5f243f40d015a5a30493faa.tar.bz2 |
target-alpha: Use kernel mmu_idx for pal_mode.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-alpha/translate.c')
-rw-r--r-- | target-alpha/translate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 2f3c637..a937356 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3098,10 +3098,8 @@ static inline void gen_intermediate_code_internal(CPUState *env, ctx.env = env; ctx.pc = pc_start; ctx.amask = env->amask; -#if defined (CONFIG_USER_ONLY) - ctx.mem_idx = 0; -#else - ctx.mem_idx = ((env->ps >> 3) & 3); + ctx.mem_idx = cpu_mmu_index(env); +#if !defined (CONFIG_USER_ONLY) ctx.pal_mode = env->pal_mode; #endif |