20 return aice_read_tlb(aice, virtual_address, physical_address);
25 {0xFFC00000, 20, 0x003FF000, 10, 0x00000FFF, 0xFFFFF000, 0xFFFFF000, 0xFFFFF000},
27 {0xFF000000, 22, 0x00FFE000, 11, 0x00001FFF, 0xFFFFF000, 0xFFFFE000, 0xFFFFE000},
35 uint32_t load_address;
36 uint32_t l1_page_table_entry;
37 uint32_t l2_page_table_entry;
44 load_address = (value_mr1 & page_table_info_p->
l1_base_mask) |
51 if (l1_page_table_entry & 0x1)
54 load_address = (l1_page_table_entry & page_table_info_p->
l2_base_mask) |
60 if ((l2_page_table_entry & 0x1) != 0x1)
63 *physical_address = (l2_page_table_entry & page_table_info_p->
ppn_mask) |
int nds32_get_mapped_reg(struct nds32 *nds32, unsigned regnum, uint32_t *value)
int nds32_read_buffer(struct target *target, uint32_t address, uint32_t size, uint8_t *buffer)
static struct aice_port_s * target_to_aice(struct target *target)
int aice_read_tlb(struct aice_port_s *aice, target_addr_t virtual_address, target_addr_t *physical_address)
static struct page_table_walker_info_s page_table_info[PAGE_SIZE_NUM]
int nds32_walk_page_table(struct nds32 *nds32, const target_addr_t virtual_address, target_addr_t *physical_address)
int nds32_probe_tlb(struct nds32 *nds32, const target_addr_t virtual_address, target_addr_t *physical_address)
int default_min_page_size
Represents a generic Andes core.
struct target * target
Backpointer to the target.
struct nds32_mmu_config mmu_config
MMU configuration.