OpenOCD
armv7a_mmu.c File Reference
Include dependency graph for armv7a_mmu.c:

Go to the source code of this file.

Macros

#define SCTLR_BIT_AFE   (1 << 29)
 

Functions

int armv7a_mmu_translate_va_pa (struct target *target, uint32_t va, target_addr_t *val, int meminfo)
 
 COMMAND_HANDLER (armv7a_mmu_dump_table)
 
static const char * desc_bits_to_string (bool c_bit, bool b_bit, bool s_bit, bool ap2, int ap10, bool afe)
 
static const char * l1_desc_bits_to_string (uint32_t l1_desc, bool afe)
 
static const char * l2_desc_bits_to_string (uint32_t l2_desc, bool afe)
 

Variables

const struct command_registration armv7a_mmu_command_handlers []
 
static const struct command_registration armv7a_mmu_group_handlers []
 

Macro Definition Documentation

◆ SCTLR_BIT_AFE

#define SCTLR_BIT_AFE   (1 << 29)

Definition at line 24 of file armv7a_mmu.c.

Function Documentation

◆ armv7a_mmu_translate_va_pa()

int armv7a_mmu_translate_va_pa ( struct target target,
uint32_t  va,
target_addr_t val,
int  meminfo 
)

◆ COMMAND_HANDLER()

COMMAND_HANDLER ( armv7a_mmu_dump_table  )

Definition at line 185 of file armv7a_mmu.c.

◆ desc_bits_to_string()

static const char* desc_bits_to_string ( bool  c_bit,
bool  b_bit,
bool  s_bit,
bool  ap2,
int  ap10,
bool  afe 
)
static

Definition at line 119 of file armv7a_mmu.c.

References priv.

Referenced by l1_desc_bits_to_string(), and l2_desc_bits_to_string().

◆ l1_desc_bits_to_string()

static const char* l1_desc_bits_to_string ( uint32_t  l1_desc,
bool  afe 
)
static

Definition at line 174 of file armv7a_mmu.c.

References desc_bits_to_string().

◆ l2_desc_bits_to_string()

static const char* l2_desc_bits_to_string ( uint32_t  l2_desc,
bool  afe 
)
static

Definition at line 163 of file armv7a_mmu.c.

References desc_bits_to_string().

Variable Documentation

◆ armv7a_mmu_command_handlers

const struct command_registration armv7a_mmu_command_handlers[]
Initial value:
= {
{
.name = "mmu",
.mode = COMMAND_ANY,
.help = "mmu command group",
.usage = "",
},
}
static const struct command_registration armv7a_mmu_group_handlers[]
Definition: armv7a_mmu.c:351
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:247
@ COMMAND_ANY
Definition: command.h:42

Definition at line 185 of file armv7a_mmu.c.

◆ armv7a_mmu_group_handlers

const struct command_registration armv7a_mmu_group_handlers[]
static
Initial value:
= {
{
.name = "dump",
.handler = armv7a_mmu_dump_table,
.mode = COMMAND_ANY,
.help = "dump translation table 0, 1 or from <address>",
.usage = "(0|1|addr <address> [num_entries])",
},
}

Definition at line 185 of file armv7a_mmu.c.