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

Go to the source code of this file.

Functions

 COMMAND_HANDLER (mips_m4k_handle_cp0_command)
 
 COMMAND_HANDLER (mips_m4k_handle_scan_delay_command)
 
static struct targetget_mips_m4k (struct target *target, int32_t coreid)
 
static int mips_m4k_add_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int mips_m4k_add_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int mips_m4k_assert_reset (struct target *target)
 
static int mips_m4k_bulk_read_memory (struct target *target, target_addr_t address, uint32_t count, uint8_t *buffer)
 
static int mips_m4k_bulk_write_memory (struct target *target, target_addr_t address, uint32_t count, const uint8_t *buffer)
 
static int mips_m4k_deassert_reset (struct target *target)
 
static int mips_m4k_debug_entry (struct target *target)
 
static void mips_m4k_enable_breakpoints (struct target *target)
 
static void mips_m4k_enable_watchpoints (struct target *target)
 
static int mips_m4k_examine (struct target *target)
 
static int mips_m4k_examine_debug_reason (struct target *target)
 
static int mips_m4k_halt (struct target *target)
 
static int mips_m4k_halt_smp (struct target *target)
 
static int mips_m4k_init_arch_info (struct target *target, struct mips_m4k_common *mips_m4k, struct jtag_tap *tap)
 
static int mips_m4k_init_target (struct command_context *cmd_ctx, struct target *target)
 
static int mips_m4k_internal_restore (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
 
static int mips_m4k_poll (struct target *target)
 
static int mips_m4k_read_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
 
static int mips_m4k_remove_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int mips_m4k_remove_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int mips_m4k_restore_smp (struct target *target, uint32_t address, int handle_breakpoints)
 
static int mips_m4k_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
 
static int mips_m4k_set_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int mips_m4k_set_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int mips_m4k_single_step_core (struct target *target)
 
static int mips_m4k_step (struct target *target, int current, target_addr_t address, int handle_breakpoints)
 
static int mips_m4k_target_create (struct target *target, Jim_Interp *interp)
 
static int mips_m4k_unset_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int mips_m4k_unset_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int mips_m4k_verify_pointer (struct command_invocation *cmd, struct mips_m4k_common *mips_m4k)
 
static int mips_m4k_write_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer)
 
static int update_halt_gdb (struct target *target)
 

Variables

static const struct command_registration mips_m4k_command_handlers []
 
static const struct command_registration mips_m4k_exec_command_handlers []
 
struct target_type mips_m4k_target
 

Function Documentation

◆ COMMAND_HANDLER() [1/2]

◆ COMMAND_HANDLER() [2/2]

◆ get_mips_m4k()

static struct target* get_mips_m4k ( struct target target,
int32_t  coreid 
)
static

◆ mips_m4k_add_breakpoint()

◆ mips_m4k_add_watchpoint()

static int mips_m4k_add_watchpoint ( struct target target,
struct watchpoint watchpoint 
)
static

◆ mips_m4k_assert_reset()

◆ mips_m4k_bulk_read_memory()

◆ mips_m4k_bulk_write_memory()

◆ mips_m4k_deassert_reset()

static int mips_m4k_deassert_reset ( struct target target)
static

Definition at line 372 of file mips_m4k.c.

References ERROR_OK, jtag_add_reset(), LOG_DEBUG, and target_state_name().

◆ mips_m4k_debug_entry()

◆ mips_m4k_enable_breakpoints()

static void mips_m4k_enable_breakpoints ( struct target target)
static

◆ mips_m4k_enable_watchpoints()

static void mips_m4k_enable_watchpoints ( struct target target)
static

◆ mips_m4k_examine()

◆ mips_m4k_examine_debug_reason()

◆ mips_m4k_halt()

◆ mips_m4k_halt_smp()

static int mips_m4k_halt_smp ( struct target target)
static

◆ mips_m4k_init_arch_info()

static int mips_m4k_init_arch_info ( struct target target,
struct mips_m4k_common mips_m4k,
struct jtag_tap tap 
)
static

◆ mips_m4k_init_target()

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

Definition at line 1137 of file mips_m4k.c.

References ERROR_OK, and mips32_build_reg_cache().

◆ mips_m4k_internal_restore()

◆ mips_m4k_poll()

◆ mips_m4k_read_memory()

◆ mips_m4k_remove_breakpoint()

static int mips_m4k_remove_breakpoint ( struct target target,
struct breakpoint breakpoint 
)
static

◆ mips_m4k_remove_watchpoint()

static int mips_m4k_remove_watchpoint ( struct target target,
struct watchpoint watchpoint 
)
static

◆ mips_m4k_restore_smp()

static int mips_m4k_restore_smp ( struct target target,
uint32_t  address,
int  handle_breakpoints 
)
static

◆ mips_m4k_resume()

static int mips_m4k_resume ( struct target target,
int  current,
target_addr_t  address,
int  handle_breakpoints,
int  debug_execution 
)
static

◆ mips_m4k_set_breakpoint()

◆ mips_m4k_set_watchpoint()

◆ mips_m4k_single_step_core()

static int mips_m4k_single_step_core ( struct target target)
static

◆ mips_m4k_step()

◆ mips_m4k_target_create()

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

Definition at line 1159 of file mips_m4k.c.

References ERROR_OK, mips_m4k_init_arch_info(), and target::tap.

◆ mips_m4k_unset_breakpoint()

◆ mips_m4k_unset_watchpoint()

◆ mips_m4k_verify_pointer()

static int mips_m4k_verify_pointer ( struct command_invocation cmd,
struct mips_m4k_common mips_m4k 
)
static

◆ mips_m4k_write_memory()

◆ update_halt_gdb()

static int update_halt_gdb ( struct target target)
static

Variable Documentation

◆ mips_m4k_command_handlers

const struct command_registration mips_m4k_command_handlers[]
static
Initial value:
= {
{
},
{
.name = "mips_m4k",
.mode = COMMAND_ANY,
.help = "mips_m4k command group",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_ANY
Definition: command.h:42
const struct command_registration mips32_command_handlers[]
Definition: mips32.c:2368
static const struct command_registration mips_m4k_exec_command_handlers[]
Definition: mips_m4k.c:1414
const char * name
Definition: command.h:235

Definition at line 1391 of file mips_m4k.c.

◆ mips_m4k_exec_command_handlers

const struct command_registration mips_m4k_exec_command_handlers[]
static
Initial value:
= {
{
.name = "cp0",
.handler = mips_m4k_handle_cp0_command,
.mode = COMMAND_EXEC,
.usage = "regnum [value]",
.help = "display/modify cp0 register",
},
{
.name = "scan_delay",
.handler = mips_m4k_handle_scan_delay_command,
.mode = COMMAND_ANY,
.help = "display/set scan delay in nano seconds",
.usage = "[value]",
},
{
},
}
@ COMMAND_EXEC
Definition: command.h:40
const struct command_registration smp_command_handlers[]
Definition: smp.c:153

Definition at line 1391 of file mips_m4k.c.

◆ mips_m4k_target

struct target_type mips_m4k_target

Definition at line 1391 of file mips_m4k.c.