mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
target/microblaze: Move mmu parameters to MicroBlazeCPUConfig
The final 4 fields in MicroBlazeMMU are configuration constants. Move them into MicroBlazeCPUConfig where they belong. Remove the leading "c_" from the member names, as that presumably implied "config", and that should not be explicit in the location. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5ad7cc07e5
commit
de73ee1abe
5 changed files with 30 additions and 25 deletions
|
@ -64,7 +64,7 @@ bool mb_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
|
|||
return true;
|
||||
}
|
||||
|
||||
hit = mmu_translate(&env->mmu, &lu, address, access_type, mmu_idx);
|
||||
hit = mmu_translate(cpu, &lu, address, access_type, mmu_idx);
|
||||
if (likely(hit)) {
|
||||
uint32_t vaddr = address & TARGET_PAGE_MASK;
|
||||
uint32_t paddr = lu.paddr + vaddr - lu.vaddr;
|
||||
|
@ -240,7 +240,7 @@ hwaddr mb_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
|
|||
unsigned int hit;
|
||||
|
||||
if (mmu_idx != MMU_NOMMU_IDX) {
|
||||
hit = mmu_translate(&env->mmu, &lu, addr, 0, 0);
|
||||
hit = mmu_translate(cpu, &lu, addr, 0, 0);
|
||||
if (hit) {
|
||||
vaddr = addr & TARGET_PAGE_MASK;
|
||||
paddr = lu.paddr + vaddr - lu.vaddr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue