mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/ppc: Move out BookE and related MMU functions from mmu_common.c
Add a new mmu-booke.c file for BookE and related MMU bits from mmu_common.c. Acked-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
committed by
Nicholas Piggin
parent
cd1038ec1d
commit
e7baac649b
@@ -1642,10 +1642,6 @@ void ppc_tlb_invalidate_all(CPUPPCState *env);
|
||||
void ppc_tlb_invalidate_one(CPUPPCState *env, target_ulong addr);
|
||||
void cpu_ppc_set_vhyp(PowerPCCPU *cpu, PPCVirtualHypervisor *vhyp);
|
||||
void cpu_ppc_set_1lpar(PowerPCCPU *cpu);
|
||||
int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb, hwaddr *raddrp,
|
||||
target_ulong address, uint32_t pid);
|
||||
int ppcemb_tlb_search(CPUPPCState *env, target_ulong address, uint32_t pid);
|
||||
hwaddr booke206_tlb_to_page_size(CPUPPCState *env, ppcmas_tlb_t *tlb);
|
||||
#endif
|
||||
|
||||
void ppc_store_fpscr(CPUPPCState *env, target_ulong val);
|
||||
|
||||
@@ -37,6 +37,7 @@ ppc_system_ss.add(files(
|
||||
'arch_dump.c',
|
||||
'machine.c',
|
||||
'mmu-hash32.c',
|
||||
'mmu-booke.c',
|
||||
'mmu_common.c',
|
||||
'ppc-qmp-cmds.c',
|
||||
))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
#ifndef PPC_MMU_BOOKE_H
|
||||
#define PPC_MMU_BOOKE_H
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
int ppcemb_tlb_search(CPUPPCState *env, target_ulong address, uint32_t pid);
|
||||
int mmu40x_get_physical_address(CPUPPCState *env, hwaddr *raddr, int *prot,
|
||||
target_ulong address,
|
||||
MMUAccessType access_type);
|
||||
hwaddr booke206_tlb_to_page_size(CPUPPCState *env, ppcmas_tlb_t *tlb);
|
||||
int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb, hwaddr *raddrp,
|
||||
target_ulong address, uint32_t pid);
|
||||
bool ppc_booke_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type,
|
||||
hwaddr *raddrp, int *psizep, int *protp, int mmu_idx,
|
||||
bool guest_visible);
|
||||
|
||||
#endif
|
||||
+1
-506
File diff suppressed because it is too large
Load Diff
@@ -33,6 +33,7 @@
|
||||
#include "internal.h"
|
||||
#include "mmu-book3s-v3.h"
|
||||
#include "mmu-radix64.h"
|
||||
#include "mmu-booke.h"
|
||||
#include "exec/helper-proto.h"
|
||||
#include "exec/cpu_ldst.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user