mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
target/ppc: Split out ppc_env_mmu_index
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
db8b41941a
commit
fb00f730c5
4 changed files with 14 additions and 9 deletions
|
@ -1561,9 +1561,9 @@ hwaddr ppc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
|
|||
* mapped by code TLBs, so we also try a MMU_INST_FETCH.
|
||||
*/
|
||||
if (ppc_xlate(cpu, addr, MMU_DATA_LOAD, &raddr, &s, &p,
|
||||
cpu_mmu_index(&cpu->env, false), false) ||
|
||||
ppc_env_mmu_index(&cpu->env, false), false) ||
|
||||
ppc_xlate(cpu, addr, MMU_INST_FETCH, &raddr, &s, &p,
|
||||
cpu_mmu_index(&cpu->env, true), false)) {
|
||||
ppc_env_mmu_index(&cpu->env, true), false)) {
|
||||
return raddr & TARGET_PAGE_MASK;
|
||||
}
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue