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

Go to the source code of this file.

Macros

#define ARMV7M_SCS_DCRDR   DCB_DCRDR
 
#define ARMV7M_SCS_DCRSR   DCB_DCRSR
 
#define SAVED_DCRDR   dbgbase /* FIXME: using target->dbgbase to preserve DCRDR */
 

Functions

static int adapter_debug_entry (struct target *target)
 
static int adapter_examine_debug_reason (struct target *target)
 
static int adapter_halt (struct target *target)
 
static int adapter_init_arch_info (struct target *target, struct cortex_m_common *cortex_m, struct jtag_tap *tap)
 
static int adapter_init_target (struct command_context *cmd_ctx, struct target *target)
 
static int adapter_load_context (struct target *target)
 
static int adapter_load_core_reg_u32 (struct target *target, uint32_t regsel, uint32_t *value)
 
static int adapter_poll (struct target *target)
 
static int adapter_read_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
 
static int adapter_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
 
static int adapter_step (struct target *target, int current, target_addr_t address, int handle_breakpoints)
 
static int adapter_store_core_reg_u32 (struct target *target, uint32_t regsel, uint32_t value)
 
static int adapter_target_create (struct target *target, Jim_Interp *interp)
 
static int adapter_write_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer)
 
static int hl_assert_reset (struct target *target)
 
static int hl_dcc_read (struct hl_interface_s *hl_if, uint8_t *value, uint8_t *ctrl)
 
static int hl_deassert_reset (struct target *target)
 
static int hl_handle_target_request (void *priv)
 
static int hl_target_request_data (struct target *target, uint32_t size, uint8_t *buffer)
 
static struct hl_interface_starget_to_adapter (struct target *target)
 

Variables

static const struct command_registration hla_command_handlers []
 
struct target_type hla_target
 

Macro Definition Documentation

◆ ARMV7M_SCS_DCRDR

#define ARMV7M_SCS_DCRDR   DCB_DCRDR

Definition at line 37 of file hla_target.c.

◆ ARMV7M_SCS_DCRSR

#define ARMV7M_SCS_DCRSR   DCB_DCRSR

Definition at line 36 of file hla_target.c.

◆ SAVED_DCRDR

#define SAVED_DCRDR   dbgbase /* FIXME: using target->dbgbase to preserve DCRDR */

Definition at line 34 of file hla_target.c.

Function Documentation

◆ adapter_debug_entry()

◆ adapter_examine_debug_reason()

static int adapter_examine_debug_reason ( struct target target)
static

◆ adapter_halt()

static int adapter_halt ( struct target target)
static

◆ adapter_init_arch_info()

◆ adapter_init_target()

static int adapter_init_target ( struct command_context cmd_ctx,
struct target target 
)
static

Definition at line 180 of file hla_target.c.

References arm_semihosting_init(), armv7m_build_reg_cache(), ERROR_OK, and LOG_DEBUG.

◆ adapter_load_context()

static int adapter_load_context ( struct target target)
static

◆ adapter_load_core_reg_u32()

static int adapter_load_core_reg_u32 ( struct target target,
uint32_t  regsel,
uint32_t *  value 
)
static

Definition at line 44 of file hla_target.c.

References adapter, and target_to_adapter().

Referenced by adapter_init_arch_info().

◆ adapter_poll()

◆ adapter_read_memory()

static int adapter_read_memory ( struct target target,
target_addr_t  address,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)
static

◆ adapter_resume()

◆ adapter_step()

◆ adapter_store_core_reg_u32()

static int adapter_store_core_reg_u32 ( struct target target,
uint32_t  regsel,
uint32_t  value 
)
static

Definition at line 51 of file hla_target.c.

References adapter, and target_to_adapter().

Referenced by adapter_init_arch_info().

◆ adapter_target_create()

static int adapter_target_create ( struct target target,
Jim_Interp *  interp 
)
static

◆ adapter_write_memory()

static int adapter_write_memory ( struct target target,
target_addr_t  address,
uint32_t  size,
uint32_t  count,
const uint8_t *  buffer 
)
static

◆ hl_assert_reset()

◆ hl_dcc_read()

static int hl_dcc_read ( struct hl_interface_s hl_if,
uint8_t *  value,
uint8_t *  ctrl 
)
static

◆ hl_deassert_reset()

static int hl_deassert_reset ( struct target target)
static

◆ hl_handle_target_request()

static int hl_handle_target_request ( void *  priv)
static

◆ hl_target_request_data()

static int hl_target_request_data ( struct target target,
uint32_t  size,
uint8_t *  buffer 
)
static

Definition at line 90 of file hla_target.c.

References buffer, ctrl, ERROR_OK, hl_dcc_read(), hl_if, size, and target_to_adapter().

◆ target_to_adapter()

Variable Documentation

◆ hla_command_handlers

const struct command_registration hla_command_handlers[]
static
Initial value:
= {
{
},
{
},
{
},
{
},
}
const struct command_registration arm_command_handlers[]
Definition: armv4_5.c:1169
const struct command_registration arm_tpiu_deprecated_command_handlers[]
const struct command_registration armv7m_trace_command_handlers[]
Definition: armv7m_trace.c:140
#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 rtt_target_command_handlers[]
Definition: rtt/tcl.c:295
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 607 of file hla_target.c.

◆ hla_target

struct target_type hla_target

Definition at line 607 of file hla_target.c.