mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target-alpha: Use kernel mmu_idx for pal_mode.
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
ea879fc719
commit
bba9bdcee8
2 changed files with 9 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue