aboutsummaryrefslogtreecommitdiff
path: root/target-alpha/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-05-20 14:14:44 -0700
committerRichard Henderson <rth@anchor.twiddle.net>2011-05-31 10:18:05 -0700
commitbba9bdcee8d4acc4e5f243f40d015a5a30493faa (patch)
treec512d089524c5a78eb5e9000a784e3dea0204901 /target-alpha/cpu.h
parentea879fc719b0756f1768f765ee3a5660ce05ca7b (diff)
downloadqemu-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/cpu.h')
-rw-r--r--target-alpha/cpu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h
index 4407b32..a59b39a 100644
--- a/target-alpha/cpu.h
+++ b/target-alpha/cpu.h
@@ -341,7 +341,13 @@ enum {
static inline int cpu_mmu_index(CPUState *env)
{
- return (env->ps & PS_USER_MODE) != 0;
+ if (env->pal_mode) {
+ return MMU_KERNEL_IDX;
+ } else if (env->ps & PS_USER_MODE) {
+ return MMU_USER_IDX;
+ } else {
+ return MMU_KERNEL_IDX;
+ }
}
enum {