]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.h
Replace is_user variable with mmu_idx in softmmu core,
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Oct 2007 07:07:08 +0000 (07:07 +0000)
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Oct 2007 07:07:08 +0000 (07:07 +0000)
commit6ebbf390003270afece028facef4d9834df81a8c
treeadc8e9a3d586d5b1b550543fceb6ffdaeda03f6a
parentd0f48074dbc21248f3b0a9fb48126cb0d95991b5
Replace is_user variable with mmu_idx in softmmu core,
  allowing support of more than 2 mmu access modes.
Add backward compatibility is_user variable in targets code when needed.
Implement per target cpu_mmu_index function, avoiding duplicated code
  and #ifdef TARGET_xxx in softmmu core functions.
Implement per target mmu modes definitions. As an example, add PowerPC
  hypervisor mode definition and Alpha executive and kernel modes definitions.
Optimize PowerPC case, precomputing mmu_idx when MSR register changes
  and using the same definition in code translation code.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3384 c046a42c-6fe2-441c-8c8c-71466251a162
48 files changed:
cpu-defs.h
cpu-exec.c
exec-all.h
exec.c
hw/alpha_palcode.c
softmmu_exec.h
softmmu_header.h
softmmu_template.h
target-alpha/cpu.h
target-alpha/exec.h
target-alpha/helper.c
target-alpha/op_helper.c
target-arm/cpu.h
target-arm/exec.h
target-arm/helper.c
target-arm/op_helper.c
target-cris/cpu.h
target-cris/exec.h
target-cris/helper.c
target-cris/mmu.c
target-cris/mmu.h
target-cris/op_helper.c
target-i386/cpu.h
target-i386/exec.h
target-i386/helper.c
target-i386/helper2.c
target-m68k/cpu.h
target-m68k/exec.h
target-m68k/helper.c
target-m68k/op_helper.c
target-mips/cpu.h
target-mips/exec.h
target-mips/helper.c
target-mips/op_helper.c
target-ppc/cpu.h
target-ppc/exec.h
target-ppc/helper.c
target-ppc/op_helper.c
target-ppc/translate.c
target-sh4/cpu.h
target-sh4/exec.h
target-sh4/helper.c
target-sh4/op_helper.c
target-sparc/cpu.h
target-sparc/exec.h
target-sparc/helper.c
target-sparc/op_helper.c
target-sparc/translate.c