summaryrefslogtreecommitdiffstats
path: root/target/microblaze/mmu.h
diff options
context:
space:
mode:
authorRichard Henderson2020-09-04 20:31:57 +0200
committerRichard Henderson2020-09-07 21:58:08 +0200
commitde73ee1abe95d37fa1b9c3129cb8a778eea43159 (patch)
treea10d8b47ce2c1f53a29eb905477dbeae466d8dbc /target/microblaze/mmu.h
parenttarget/microblaze: Treat pvr_regs as constant (diff)
downloadqemu-de73ee1abe95d37fa1b9c3129cb8a778eea43159.tar.gz
qemu-de73ee1abe95d37fa1b9c3129cb8a778eea43159.tar.xz
qemu-de73ee1abe95d37fa1b9c3129cb8a778eea43159.zip
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>
Diffstat (limited to 'target/microblaze/mmu.h')
-rw-r--r--target/microblaze/mmu.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/target/microblaze/mmu.h b/target/microblaze/mmu.h
index c1feb811b9..7d0fbb8341 100644
--- a/target/microblaze/mmu.h
+++ b/target/microblaze/mmu.h
@@ -70,11 +70,6 @@ typedef struct {
uint8_t tids[TLB_ENTRIES];
/* Control flops. */
uint32_t regs[3];
-
- int c_mmu;
- int c_mmu_tlb_access;
- int c_mmu_zones;
- uint64_t c_addr_mask; /* Mask to apply to physical addresses. */
} MicroBlazeMMU;
typedef struct {
@@ -88,7 +83,7 @@ typedef struct {
} err;
} MicroBlazeMMULookup;
-unsigned int mmu_translate(MicroBlazeMMU *mmu, MicroBlazeMMULookup *lu,
+unsigned int mmu_translate(MicroBlazeCPU *cpu, MicroBlazeMMULookup *lu,
target_ulong vaddr, int rw, int mmu_idx);
uint32_t mmu_read(CPUMBState *env, bool ea, uint32_t rn);
void mmu_write(CPUMBState *env, bool ea, uint32_t rn, uint32_t v);