mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target/microblaze: Rename mmu structs
Introduce typedefs and follow CODING_STYLE for naming. Rename struct microblaze_mmu to MicroBlazeMMU. Rename struct microblaze_mmu_lookup to MicroBlazeMMULookup. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a9f614587b
commit
8ce97bc188
4 changed files with 14 additions and 18 deletions
|
@ -63,8 +63,7 @@
|
|||
|
||||
#define TLB_ENTRIES 64
|
||||
|
||||
struct microblaze_mmu
|
||||
{
|
||||
typedef struct {
|
||||
/* Data and tag brams. */
|
||||
uint64_t rams[2][TLB_ENTRIES];
|
||||
/* We keep a separate ram for the tids to avoid the 48 bit tag width. */
|
||||
|
@ -76,10 +75,9 @@ struct microblaze_mmu
|
|||
int c_mmu_tlb_access;
|
||||
int c_mmu_zones;
|
||||
uint64_t c_addr_mask; /* Mask to apply to physical addresses. */
|
||||
};
|
||||
} MicroBlazeMMU;
|
||||
|
||||
struct microblaze_mmu_lookup
|
||||
{
|
||||
typedef struct {
|
||||
uint32_t paddr;
|
||||
uint32_t vaddr;
|
||||
unsigned int size;
|
||||
|
@ -88,13 +86,12 @@ struct microblaze_mmu_lookup
|
|||
enum {
|
||||
ERR_PROT, ERR_MISS, ERR_HIT
|
||||
} err;
|
||||
};
|
||||
} MicroBlazeMMULookup;
|
||||
|
||||
unsigned int mmu_translate(struct microblaze_mmu *mmu,
|
||||
struct microblaze_mmu_lookup *lu,
|
||||
unsigned int mmu_translate(MicroBlazeMMU *mmu, 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);
|
||||
void mmu_init(struct microblaze_mmu *mmu);
|
||||
void mmu_init(MicroBlazeMMU *mmu);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue