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

Go to the source code of this file.

Functions

int armv7a_arch_state (struct target *target)
 
int armv7a_handle_cache_info_command (struct command_invocation *cmd, struct armv7a_cache_common *armv7a_cache)
 
int armv7a_identify_cache (struct target *target)
 
int armv7a_init_arch_info (struct target *target, struct armv7a_common *armv7a)
 
static int armv7a_l2x_cache_init (struct target *target, uint32_t base, uint32_t way)
 
static int armv7a_read_midr (struct target *target)
 
static int armv7a_read_mpidr (struct target *target)
 
int armv7a_read_ttbcr (struct target *target)
 
static int armv7a_setup_semihosting (struct target *target, int enable)
 
static void armv7a_show_fault_registers (struct target *target)
 
 COMMAND_HANDLER (handle_cache_l2x)
 
static struct armv7a_cachesize decode_cache_reg (uint32_t cache_reg)
 
static int get_cache_info (struct arm_dpm *dpm, int cl, int ct, uint32_t *cache_reg)
 

Variables

const struct command_registration armv7a_command_handlers []
 
static const struct command_registration l2_cache_commands []
 
static const struct command_registration l2x_cache_command_handlers []
 

Function Documentation

◆ armv7a_arch_state()

◆ armv7a_handle_cache_info_command()

◆ armv7a_identify_cache()

◆ armv7a_init_arch_info()

◆ armv7a_l2x_cache_init()

static int armv7a_l2x_cache_init ( struct target target,
uint32_t  base,
uint32_t  way 
)
static

◆ armv7a_read_midr()

◆ armv7a_read_mpidr()

◆ armv7a_read_ttbcr()

◆ armv7a_setup_semihosting()

static int armv7a_setup_semihosting ( struct target target,
int  enable 
)
static

◆ armv7a_show_fault_registers()

static void armv7a_show_fault_registers ( struct target target)
static

◆ COMMAND_HANDLER()

COMMAND_HANDLER ( handle_cache_l2x  )

◆ decode_cache_reg()

static struct armv7a_cachesize decode_cache_reg ( uint32_t  cache_reg)
static

◆ get_cache_info()

static int get_cache_info ( struct arm_dpm dpm,
int  cl,
int  ct,
uint32_t *  cache_reg 
)
static

Definition at line 324 of file armv7a.c.

Referenced by armv7a_identify_cache().

Variable Documentation

◆ armv7a_command_handlers

const struct command_registration armv7a_command_handlers[]
Initial value:
= {
{
},
{
},
}
static const struct command_registration l2x_cache_command_handlers[]
Definition: armv7a.c:577
const struct command_registration arm7a_cache_command_handlers[]
Definition: armv7a_cache.c:607
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:247
const struct command_registration * chain
If non-NULL, the commands in chain will be registered in the same context and scope of this registrat...
Definition: command.h:243

Definition at line 532 of file armv7a.c.

◆ l2_cache_commands

const struct command_registration l2_cache_commands[]
static
Initial value:
= {
{
.name = "l2x",
.handler = handle_cache_l2x,
.mode = COMMAND_EXEC,
.help = "configure l2x cache",
.usage = "[base_addr] [number_of_way]",
},
}
@ COMMAND_EXEC
Definition: command.h:40

Definition at line 532 of file armv7a.c.

◆ l2x_cache_command_handlers

const struct command_registration l2x_cache_command_handlers[]
static
Initial value:
= {
{
.name = "cache_config",
.mode = COMMAND_EXEC,
.help = "cache configuration for a target",
.usage = "",
},
}
static const struct command_registration l2_cache_commands[]
Definition: armv7a.c:565

Definition at line 532 of file armv7a.c.