OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | csr_info |
struct | trigger |
Macros | |
#define | CSR_BPCONTROL_BPACTION (0xff<<11) |
#define | CSR_BPCONTROL_BPMATCH (0xf<<7) |
#define | CSR_BPCONTROL_H (1<<5) |
#define | CSR_BPCONTROL_M (1<<6) |
#define | CSR_BPCONTROL_R (1<<2) |
#define | CSR_BPCONTROL_S (1<<4) |
#define | CSR_BPCONTROL_U (1<<3) |
#define | CSR_BPCONTROL_W (1<<1) |
#define | CSR_BPCONTROL_X (1<<0) |
#define | DBUS 0x11 |
#define | DBUS_ADDRESS_START 36 |
#define | DBUS_ADDRESS_UNKNOWN 0xffff |
#define | DBUS_DATA_SIZE 34 |
#define | DBUS_DATA_START 2 |
#define | DBUS_OP_SIZE 2 |
#define | DBUS_OP_START 0 |
#define | DEBUG_RAM_START 0x400 |
#define | DEBUG_ROM_EXCEPTION (DEBUG_ROM_START + 8) |
#define | DEBUG_ROM_RESUME (DEBUG_ROM_START + 4) |
#define | DEBUG_ROM_START 0x800 |
#define | DECLARE_CSR(name, number) { number, #name }, |
#define | DMCONTROL 0x10 |
#define | DMCONTROL_ACCESS (7<<12) |
#define | DMCONTROL_AUTOINCREMENT (1<<15) |
#define | DMCONTROL_BUSERROR (7<<19) |
#define | DMCONTROL_FULLRESET 1 |
#define | DMCONTROL_HALTNOT (((uint64_t)1)<<32) |
#define | DMCONTROL_HARTID (0x3ff<<2) |
#define | DMCONTROL_INTERRUPT (((uint64_t)1)<<33) |
#define | DMCONTROL_NDRESET (1<<1) |
#define | DMCONTROL_SERIAL (3<<16) |
#define | DMINFO 0x11 |
#define | DMINFO_ABUSSIZE (0x7fU<<25) |
#define | DMINFO_ACCESS128 (1<<20) |
#define | DMINFO_ACCESS16 (1<<17) |
#define | DMINFO_ACCESS32 (1<<18) |
#define | DMINFO_ACCESS64 (1<<19) |
#define | DMINFO_ACCESS8 (1<<16) |
#define | DMINFO_AUTHBUSY (1<<4) |
#define | DMINFO_AUTHENTICATED (1<<5) |
#define | DMINFO_AUTHTYPE (3<<2) |
#define | DMINFO_DRAMSIZE (0x3f<<10) |
#define | DMINFO_SERIALCOUNT (0xf<<21) |
#define | DMINFO_VERSION 3 |
#define | DRAM_CACHE_SIZE 16 |
#define | DTMCONTROL 0x10 |
#define | DTMCONTROL_ADDRBITS (0xf<<4) |
#define | DTMCONTROL_DBUS_RESET (1<<16) |
#define | DTMCONTROL_IDLE (7<<10) |
#define | DTMCONTROL_VERSION (0xf) |
#define | get_field(reg, mask) (((reg) & (mask)) / ((mask) & ~((mask) << 1))) |
#define | MAX_HWBPS 16 |
#define | set_field(reg, mask, val) (((reg) & ~(mask)) | (((val) * ((mask) & ~((mask) << 1))) & (mask))) |
#define | SETHALTNOT 0x10c |
Typedefs | |
typedef enum slot | slot_t |
Enumerations | |
enum | { RO_NORMAL , RO_REVERSED } |
enum | dbus_op_t { DBUS_OP_NOP = 0 , DBUS_OP_READ = 1 , DBUS_OP_WRITE = 2 , DBUS_OP_NOP = 0 , DBUS_OP_READ = 1 , DBUS_OP_WRITE = 2 } |
enum | dbus_status_t { DBUS_STATUS_SUCCESS = 0 , DBUS_STATUS_FAILED = 2 , DBUS_STATUS_BUSY = 3 , DBUS_STATUS_SUCCESS = 0 , DBUS_STATUS_FAILED = 2 , DBUS_STATUS_BUSY = 3 } |
enum | riscv_poll_hart { RPH_NO_CHANGE , RPH_DISCOVERED_HALTED , RPH_DISCOVERED_RUNNING , RPH_ERROR } |
enum | slot { SLOT0 , SLOT1 , SLOT_LAST , SLOT0 , SLOT1 , SLOT_LAST , SLOT0 , SLOT1 , SLOT_LAST } |
Functions | |
static int | add_trigger (struct target *target, struct trigger *trigger) |
static int | cmp_csr_info (const void *p1, const void *p2) |
COMMAND_HANDLER (handle_info) | |
COMMAND_HANDLER (riscv_authdata_read) | |
COMMAND_HANDLER (riscv_authdata_write) | |
COMMAND_HANDLER (riscv_dmi_read) | |
COMMAND_HANDLER (riscv_dmi_write) | |
COMMAND_HANDLER (riscv_reset_delays) | |
COMMAND_HANDLER (riscv_resume_order) | |
COMMAND_HANDLER (riscv_set_command_timeout_sec) | |
COMMAND_HANDLER (riscv_set_ebreakm) | |
COMMAND_HANDLER (riscv_set_ebreaks) | |
COMMAND_HANDLER (riscv_set_ebreaku) | |
COMMAND_HANDLER (riscv_set_enable_virt2phys) | |
COMMAND_HANDLER (riscv_set_enable_virtual) | |
COMMAND_HANDLER (riscv_set_expose_csrs) | |
COMMAND_HANDLER (riscv_set_expose_custom) | |
COMMAND_HANDLER (riscv_set_ir) | |
COMMAND_HANDLER (riscv_set_mem_access) | |
COMMAND_HANDLER (riscv_set_reset_timeout_sec) | |
COMMAND_HANDLER (riscv_use_bscan_tunnel) | |
COMMAND_HELPER (riscv_print_info_line, const char *section, const char *key, unsigned int value) | |
static int | disable_triggers (struct target *target, riscv_reg_t *state) |
static uint32_t | dtmcontrol_scan (struct target *target, uint32_t out) |
uint32_t | dtmcontrol_scan_via_bscan (struct target *target, uint32_t out) |
static int | enable_triggers (struct target *target, riscv_reg_t *state) |
static bool | gdb_regno_cacheable (enum gdb_regno regno, bool write) |
If write is true: return true iff we are guaranteed that the register will contain exactly the value we just wrote when it's read. More... | |
const char * | gdb_regno_name (enum gdb_regno regno) |
static struct target_type * | get_target_type (struct target *target) |
static int | halt_finish (struct target *target) |
static int | halt_go (struct target *target) |
static int | halt_prep (struct target *target) |
static int | maybe_add_trigger_t1 (struct target *target, struct trigger *trigger, uint64_t tdata1) |
static int | maybe_add_trigger_t2 (struct target *target, struct trigger *trigger, uint64_t tdata1) |
static int | maybe_add_trigger_t6 (struct target *target, struct trigger *trigger, uint64_t tdata1) |
static int | old_or_new_riscv_poll (struct target *target) |
static int | old_or_new_riscv_step (struct target *target, int current, target_addr_t address, int handle_breakpoints) |
static int | oldriscv_poll (struct target *target) |
static int | oldriscv_step (struct target *target, int current, uint32_t address, int handle_breakpoints) |
static int | parse_ranges (struct list_head *ranges, const char *tcl_arg, const char *reg_type, unsigned int max_val) |
static int | read_by_given_size (struct target *target, target_addr_t address, uint32_t size, uint8_t *buffer, uint32_t access_size) |
Read one memory item of given "size". More... | |
static int | register_get (struct reg *reg) |
static int | register_set (struct reg *reg, uint8_t *buf) |
static int | remove_trigger (struct target *target, struct trigger *trigger) |
static int | resume_finish (struct target *target) |
static int | resume_go (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution) |
Resume all the harts that have been prepped, as close to instantaneous as possible. More... | |
static int | resume_prep (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution) |
Get everything ready to resume. More... | |
static int | riscv_add_breakpoint (struct target *target, struct breakpoint *breakpoint) |
void | riscv_add_bscan_tunneled_scan (struct target *target, struct scan_field *field, riscv_bscan_tunneled_scan_context_t *ctxt) |
int | riscv_add_watchpoint (struct target *target, struct watchpoint *watchpoint) |
static int | riscv_address_translate (struct target *target, target_addr_t virtual, target_addr_t *physical) |
static int | riscv_arch_state (struct target *target) |
static int | riscv_assert_reset (struct target *target) |
static int | riscv_checksum_memory (struct target *target, target_addr_t address, uint32_t count, uint32_t *checksum) |
int | riscv_count_harts (struct target *target) |
static int | riscv_create_target (struct target *target, Jim_Interp *interp) |
int | riscv_current_hartid (const struct target *target) |
static unsigned int | riscv_data_bits (struct target *target) |
static int | riscv_deassert_reset (struct target *target) |
size_t | riscv_debug_buffer_size (struct target *target) |
static void | riscv_deinit_target (struct target *target) |
int | riscv_dmi_write_u64_bits (struct target *target) |
int | riscv_enumerate_triggers (struct target *target) |
Count triggers, and initialize trigger_count for each hart. More... | |
static int | riscv_examine (struct target *target) |
int | riscv_execute_debug_buffer (struct target *target) |
void | riscv_fill_dmi_nop_u64 (struct target *target, char *buf) |
void | riscv_fill_dmi_read_u64 (struct target *target, char *buf, int a) |
void | riscv_fill_dmi_write_u64 (struct target *target, char *buf, int a, uint64_t d) |
static void | riscv_free_registers (struct target *target) |
static const char * | riscv_get_gdb_arch (const struct target *target) |
static int | riscv_get_gdb_reg_list (struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class) |
static int | riscv_get_gdb_reg_list_internal (struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class, bool read) |
static int | riscv_get_gdb_reg_list_noread (struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class) |
int | riscv_get_register (struct target *target, riscv_reg_t *value, enum gdb_regno regid) |
Get register, from the cache if it's in there. More... | |
int | riscv_halt (struct target *target) |
static int | riscv_halt_go_all_harts (struct target *target) |
static enum riscv_halt_reason | riscv_halt_reason (struct target *target, int hartid) |
static int | riscv_hit_watchpoint (struct target *target, struct watchpoint **hit_watchpoint) |
static void | riscv_info_init (struct target *target, struct riscv_info *r) |
int | riscv_init_registers (struct target *target) |
static int | riscv_init_target (struct command_context *cmd_ctx, struct target *target) |
static void | riscv_invalidate_register_cache (struct target *target) |
bool | riscv_is_halted (struct target *target) |
static int | riscv_mmu (struct target *target, int *enabled) |
int | riscv_openocd_poll (struct target *target) |
int | riscv_openocd_step (struct target *target, int current, target_addr_t address, int handle_breakpoints) |
static enum riscv_poll_hart | riscv_poll_hart (struct target *target, int hartid) |
int | riscv_read_by_any_size (struct target *target, target_addr_t address, uint32_t size, uint8_t *buffer) |
Read one memory item using any memory access size that will work. More... | |
riscv_insn_t | riscv_read_debug_buffer (struct target *target, int index) |
static int | riscv_read_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | riscv_read_phys_memory (struct target *target, target_addr_t phys_address, uint32_t size, uint32_t count, uint8_t *buffer) |
static int | riscv_remove_breakpoint (struct target *target, struct breakpoint *breakpoint) |
int | riscv_remove_watchpoint (struct target *target, struct watchpoint *watchpoint) |
static int | riscv_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution, bool single_hart) |
static int | riscv_resume_go_all_harts (struct target *target) |
static int | riscv_resume_prep_all_harts (struct target *target) |
static int | riscv_run_algorithm (struct target *target, int num_mem_params, struct mem_param *mem_params, int num_reg_params, struct reg_param *reg_params, target_addr_t entry_point, target_addr_t exit_point, unsigned int timeout_ms, void *arch_info) |
static void | riscv_sample_buf_maybe_add_timestamp (struct target *target, bool before) |
int | riscv_select_current_hart (struct target *target) |
int | riscv_set_current_hartid (struct target *target, int hartid) |
int | riscv_set_register (struct target *target, enum gdb_regno regid, riscv_reg_t value) |
This function is called when the debug user wants to change the value of a register. More... | |
static int | riscv_step_rtos_hart (struct target *target) |
bool | riscv_supports_extension (struct target *target, char letter) |
static int | riscv_target_resume (struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution) |
static int | riscv_virt2phys (struct target *target, target_addr_t virtual, target_addr_t *physical) |
int | riscv_write_by_any_size (struct target *target, target_addr_t address, uint32_t size, uint8_t *buffer) |
Write one memory item using any memory access size that will work. More... | |
int | riscv_write_debug_buffer (struct target *target, int index, riscv_insn_t insn) |
static int | riscv_write_memory (struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer) |
static int | riscv_write_phys_memory (struct target *target, target_addr_t phys_address, uint32_t size, uint32_t count, const uint8_t *buffer) |
unsigned int | riscv_xlen (const struct target *target) |
static unsigned int | riscv_xlen_nonconst (struct target *target) |
static int | sample_memory (struct target *target) |
void | select_dmi_via_bscan (struct target *target) |
static int | set_debug_reason (struct target *target, enum riscv_halt_reason halt_reason) |
static void | trigger_from_breakpoint (struct trigger *trigger, const struct breakpoint *breakpoint) |
static void | trigger_from_watchpoint (struct trigger *trigger, const struct watchpoint *watchpoint) |
static int | write_by_given_size (struct target *target, target_addr_t address, uint32_t size, uint8_t *buffer, uint32_t access_size) |
Write one memory item of given "size". More... | |
#define DEBUG_ROM_EXCEPTION (DEBUG_ROM_START + 8) |
#define DEBUG_ROM_RESUME (DEBUG_ROM_START + 4) |
enum dbus_op_t |
enum dbus_status_t |
enum riscv_poll_hart |
enum slot |
Definition at line 689 of file riscv.c.
References target::coreid, ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, GDB_REGNO_TDATA1, GDB_REGNO_TSELECT, get_field, LOG_DEBUG, LOG_ERROR, maybe_add_trigger_t1(), maybe_add_trigger_t2(), maybe_add_trigger_t6(), MCONTROL_TYPE, riscv_enumerate_triggers(), riscv_get_register(), RISCV_INFO, riscv_set_register(), riscv_xlen(), type, and trigger::unique_id.
Referenced by riscv_add_breakpoint(), and riscv_add_watchpoint().
|
static |
Definition at line 3785 of file riscv.c.
Referenced by riscv_init_registers().
COMMAND_HANDLER | ( | handle_info | ) |
Definition at line 2846 of file riscv.c.
References CALL_COMMAND_HANDLER, CMD, CMD_CTX, get_current_target(), riscv_enumerate_triggers(), RISCV_INFO, and riscv_xlen().
COMMAND_HANDLER | ( | riscv_authdata_read | ) |
Definition at line 2595 of file riscv.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print_sameline(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_current_target(), LOG_ERROR, and RISCV_INFO.
COMMAND_HANDLER | ( | riscv_authdata_write | ) |
Definition at line 2631 of file riscv.c.
References CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, get_current_target(), LOG_ERROR, and RISCV_INFO.
COMMAND_HANDLER | ( | riscv_dmi_read | ) |
Definition at line 2657 of file riscv.c.
References CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_current_target(), LOG_ERROR, and RISCV_INFO.
COMMAND_HANDLER | ( | riscv_dmi_write | ) |
Definition at line 2690 of file riscv.c.
References CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, get_current_target(), LOG_ERROR, and RISCV_INFO.
COMMAND_HANDLER | ( | riscv_reset_delays | ) |
Definition at line 2712 of file riscv.c.
References CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_current_target(), LOG_ERROR, and RISCV_INFO.
COMMAND_HANDLER | ( | riscv_resume_order | ) |
Definition at line 2752 of file riscv.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, LOG_ERROR, resume_order, RO_NORMAL, and RO_REVERSED.
COMMAND_HANDLER | ( | riscv_set_command_timeout_sec | ) |
Definition at line 2335 of file riscv.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, LOG_ERROR, and riscv_command_timeout_sec.
COMMAND_HANDLER | ( | riscv_set_ebreakm | ) |
Definition at line 2807 of file riscv.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_ON_OFF, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, and riscv_ebreakm.
COMMAND_HANDLER | ( | riscv_set_ebreaks | ) |
Definition at line 2817 of file riscv.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_ON_OFF, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, and riscv_ebreaks.
COMMAND_HANDLER | ( | riscv_set_ebreaku | ) |
Definition at line 2827 of file riscv.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_ON_OFF, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, and riscv_ebreaku.
COMMAND_HANDLER | ( | riscv_set_enable_virt2phys | ) |
Definition at line 2797 of file riscv.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_ON_OFF, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, and riscv_enable_virt2phys.
COMMAND_HANDLER | ( | riscv_set_enable_virtual | ) |
Definition at line 2420 of file riscv.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_ON_OFF, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, and riscv_enable_virtual.
COMMAND_HANDLER | ( | riscv_set_expose_csrs | ) |
Definition at line 2555 of file riscv.c.
References CMD_ARGC, CMD_ARGV, CMD_CTX, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_current_target(), info, LOG_ERROR, parse_ranges(), and RISCV_INFO.
COMMAND_HANDLER | ( | riscv_set_expose_custom | ) |
Definition at line 2575 of file riscv.c.
References CMD_ARGC, CMD_ARGV, CMD_CTX, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_current_target(), info, LOG_ERROR, parse_ranges(), and RISCV_INFO.
COMMAND_HANDLER | ( | riscv_set_ir | ) |
Definition at line 2730 of file riscv.c.
References buf_set_u32(), CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, ir_dbus, ir_dtmcontrol, ir_idcode, and LOG_ERROR.
COMMAND_HANDLER | ( | riscv_set_mem_access | ) |
Definition at line 2368 of file riscv.c.
References CMD_ARGC, CMD_ARGV, CMD_CTX, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, get_current_target(), LOG_ERROR, RISCV_INFO, RISCV_MEM_ACCESS_ABSTRACT, RISCV_MEM_ACCESS_PROGBUF, RISCV_MEM_ACCESS_SYSBUS, RISCV_MEM_ACCESS_UNSPECIFIED, and RISCV_NUM_MEM_ACCESS_METHODS.
COMMAND_HANDLER | ( | riscv_set_reset_timeout_sec | ) |
Definition at line 2352 of file riscv.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, LOG_ERROR, and riscv_reset_timeout_sec.
COMMAND_HANDLER | ( | riscv_use_bscan_tunnel | ) |
Definition at line 2771 of file riscv.c.
References BSCAN_TUNNEL_DATA_REGISTER, bscan_tunnel_ir_width, BSCAN_TUNNEL_NESTED_TAP, bscan_tunnel_type, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_ERROR, and LOG_INFO.
COMMAND_HELPER | ( | riscv_print_info_line | , |
const char * | section, | ||
const char * | key, | ||
unsigned int | value | ||
) |
Definition at line 2837 of file riscv.c.
References CMD, and command_print().
|
static |
Definition at line 1310 of file riscv.c.
References ERROR_FAIL, ERROR_OK, GDB_REGNO_TDATA1, GDB_REGNO_TSELECT, watchpoint::is_set, LOG_DEBUG, MCONTROL_DMODE, watchpoint::next, riscv_enumerate_triggers(), riscv_get_register(), RISCV_INFO, riscv_remove_watchpoint(), riscv_set_register(), riscv_xlen(), state, and target::watchpoints.
Referenced by resume_prep(), and riscv_openocd_step().
|
static |
Definition at line 377 of file riscv.c.
References bscan_tunnel_ir_width, buf_get_u32(), buf_set_u32(), dtmcontrol_scan_via_bscan(), ERROR_OK, scan_field::in_value, jtag_add_dr_scan(), jtag_add_ir_scan(), jtag_execute_queue(), LOG_DEBUG, LOG_ERROR, scan_field::num_bits, scan_field::out_value, select_dbus, select_dtmcontrol, target::tap, and TAP_IDLE.
Referenced by riscv_examine().
uint32_t dtmcontrol_scan_via_bscan | ( | struct target * | target, |
uint32_t | out | ||
) |
Definition at line 293 of file riscv.c.
References ARRAY_SIZE, bscan_one, BSCAN_TUNNEL_DATA_REGISTER, bscan_tunnel_ir_width, bscan_tunnel_type, bscan_zero, buf_get_u32(), buf_set_u32(), ERROR_OK, scan_field::in_value, ir_dtmcontrol, jtag_add_dr_scan(), jtag_add_ir_scan(), jtag_execute_queue(), LOG_DEBUG, LOG_ERROR, NULL, scan_field::num_bits, scan_field::out_value, select_dmi_via_bscan(), select_user4, target::tap, and TAP_IDLE.
Referenced by dtmcontrol_scan().
|
static |
Definition at line 1358 of file riscv.c.
References ERROR_FAIL, ERROR_OK, GDB_REGNO_TDATA1, GDB_REGNO_TSELECT, LOG_DEBUG, watchpoint::next, riscv_add_watchpoint(), riscv_get_register(), RISCV_INFO, riscv_set_register(), state, and target::watchpoints.
Referenced by resume_prep(), and riscv_openocd_step().
|
static |
If write is true: return true iff we are guaranteed that the register will contain exactly the value we just wrote when it's read.
If write is false: return true iff we are guaranteed that the register will read the same value in the future as the value we just read.
Definition at line 3263 of file riscv.c.
References GDB_REGNO_DCSR, GDB_REGNO_DPC, GDB_REGNO_DSCRATCH0, GDB_REGNO_FPR0, GDB_REGNO_FPR31, GDB_REGNO_MCAUSE, GDB_REGNO_MEPC, GDB_REGNO_MISA, GDB_REGNO_MSTATUS, GDB_REGNO_SATP, GDB_REGNO_TDATA1, GDB_REGNO_TDATA2, GDB_REGNO_TSELECT, GDB_REGNO_V0, GDB_REGNO_V31, GDB_REGNO_VL, GDB_REGNO_VLENB, GDB_REGNO_VSTART, GDB_REGNO_VTYPE, GDB_REGNO_VXRM, GDB_REGNO_VXSAT, and GDB_REGNO_XPR31.
Referenced by register_get(), register_set(), riscv_get_register(), and riscv_set_register().
const char* gdb_regno_name | ( | enum gdb_regno | regno | ) |
Definition at line 3515 of file riscv.c.
References GDB_REGNO_A0, GDB_REGNO_A1, GDB_REGNO_A2, GDB_REGNO_A3, GDB_REGNO_A4, GDB_REGNO_A5, GDB_REGNO_A6, GDB_REGNO_A7, GDB_REGNO_CSR0, GDB_REGNO_CSR4095, GDB_REGNO_DCSR, GDB_REGNO_DPC, GDB_REGNO_DSCRATCH0, GDB_REGNO_FPR0, GDB_REGNO_FPR31, GDB_REGNO_GP, GDB_REGNO_MCAUSE, GDB_REGNO_MEPC, GDB_REGNO_MISA, GDB_REGNO_MSTATUS, GDB_REGNO_PC, GDB_REGNO_PRIV, GDB_REGNO_RA, GDB_REGNO_S0, GDB_REGNO_S1, GDB_REGNO_S10, GDB_REGNO_S11, GDB_REGNO_S2, GDB_REGNO_S3, GDB_REGNO_S4, GDB_REGNO_S5, GDB_REGNO_S6, GDB_REGNO_S7, GDB_REGNO_S8, GDB_REGNO_S9, GDB_REGNO_SATP, GDB_REGNO_SP, GDB_REGNO_T0, GDB_REGNO_T1, GDB_REGNO_T2, GDB_REGNO_T3, GDB_REGNO_T4, GDB_REGNO_T5, GDB_REGNO_T6, GDB_REGNO_TDATA1, GDB_REGNO_TDATA2, GDB_REGNO_TP, GDB_REGNO_TSELECT, GDB_REGNO_V0, GDB_REGNO_V1, GDB_REGNO_V10, GDB_REGNO_V11, GDB_REGNO_V12, GDB_REGNO_V13, GDB_REGNO_V14, GDB_REGNO_V15, GDB_REGNO_V16, GDB_REGNO_V17, GDB_REGNO_V18, GDB_REGNO_V19, GDB_REGNO_V2, GDB_REGNO_V20, GDB_REGNO_V21, GDB_REGNO_V22, GDB_REGNO_V23, GDB_REGNO_V24, GDB_REGNO_V25, GDB_REGNO_V26, GDB_REGNO_V27, GDB_REGNO_V28, GDB_REGNO_V29, GDB_REGNO_V3, GDB_REGNO_V30, GDB_REGNO_V31, GDB_REGNO_V4, GDB_REGNO_V5, GDB_REGNO_V6, GDB_REGNO_V7, GDB_REGNO_V8, GDB_REGNO_V9, GDB_REGNO_VL, GDB_REGNO_VTYPE, GDB_REGNO_XPR31, and GDB_REGNO_ZERO.
Referenced by access_register_command(), read_remote_csr(), register_get(), register_read(), register_read_direct(), register_set(), register_write(), register_write_direct(), riscv013_get_register(), riscv013_set_register(), riscv_get_register(), riscv_run_algorithm(), and riscv_set_register().
|
static |
Definition at line 411 of file riscv.c.
References target::arch_info, info, LOG_ERROR, NULL, riscv011_target, riscv013_target, and RISCV_INFO.
Referenced by halt_go(), oldriscv_poll(), oldriscv_step(), resume_go(), riscv_arch_state(), riscv_assert_reset(), riscv_deassert_reset(), riscv_deinit_target(), riscv_examine(), riscv_halt(), riscv_write_memory(), and riscv_write_phys_memory().
|
static |
Definition at line 1221 of file riscv.c.
References target_call_event_callbacks(), and TARGET_EVENT_HALTED.
Referenced by riscv_halt().
|
static |
Definition at line 1204 of file riscv.c.
References DBG_REASON_DBGRQ, DBG_REASON_NOTHALTED, target::debug_reason, get_target_type(), target_type::halt, riscv_halt_go_all_harts(), RISCV_INFO, target::state, and TARGET_HALTED.
Referenced by riscv_halt().
|
static |
Definition at line 1166 of file riscv.c.
References target::debug_reason, ERROR_FAIL, ERROR_OK, LOG_DEBUG, RISCV_INFO, riscv_is_halted(), riscv_select_current_hart(), and target_name().
Referenced by riscv_halt().
|
static |
Definition at line 534 of file riscv.c.
References trigger::address, BIT, ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, trigger::execute, GDB_REGNO_TDATA1, GDB_REGNO_TDATA2, LOG_DEBUG, trigger::read, riscv_get_register(), RISCV_INFO, riscv_set_register(), set_field, and trigger::write.
Referenced by add_trigger().
|
static |
Definition at line 587 of file riscv.c.
References trigger::address, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, trigger::execute, GDB_REGNO_TDATA1, GDB_REGNO_TDATA2, LOG_DEBUG, MCONTROL_ACTION, MCONTROL_ACTION_DEBUG_MODE, MCONTROL_DMODE, MCONTROL_EXECUTE, MCONTROL_LOAD, MCONTROL_M, MCONTROL_MATCH, MCONTROL_MATCH_EQUAL, MCONTROL_S, MCONTROL_STORE, MCONTROL_U, trigger::read, riscv_get_register(), RISCV_INFO, riscv_set_register(), riscv_xlen(), set_field, and trigger::write.
Referenced by add_trigger().
|
static |
Definition at line 637 of file riscv.c.
References trigger::address, CSR_MCONTROL6_ACTION, CSR_MCONTROL6_EXECUTE, CSR_MCONTROL6_LOAD, CSR_MCONTROL6_M, CSR_MCONTROL6_MATCH, CSR_MCONTROL6_S, CSR_MCONTROL6_STORE, CSR_MCONTROL6_U, CSR_MCONTROL6_VS, CSR_MCONTROL6_VU, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, trigger::execute, GDB_REGNO_TDATA1, GDB_REGNO_TDATA2, LOG_DEBUG, MCONTROL_ACTION_DEBUG_MODE, MCONTROL_DMODE, MCONTROL_MATCH_EQUAL, trigger::read, riscv_get_register(), RISCV_INFO, riscv_set_register(), riscv_xlen(), set_field, and trigger::write.
Referenced by add_trigger().
|
static |
Definition at line 1152 of file riscv.c.
References oldriscv_poll(), RISCV_INFO, and riscv_openocd_poll().
Referenced by riscv_run_algorithm().
|
static |
Definition at line 1107 of file riscv.c.
References LOG_DEBUG, oldriscv_step(), RISCV_INFO, and riscv_openocd_step().
Referenced by resume_prep().
|
static |
Definition at line 1146 of file riscv.c.
References get_target_type(), and target_type::poll.
Referenced by old_or_new_riscv_poll().
|
static |
Definition at line 1100 of file riscv.c.
References get_target_type(), and target_type::step.
Referenced by old_or_new_riscv_step().
|
static |
Definition at line 2430 of file riscv.c.
References ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, list_add(), list_for_each_entry, LOG_ERROR, LOG_WARNING, low, range_list_t::low, name, range_list_t::name, and NULL.
Referenced by COMMAND_HANDLER().
|
static |
Read one memory item of given "size".
Use memory access of given "access_size". Read larger section of memory and pick out the required portion, if needed.
Definition at line 778 of file riscv.c.
References buffer, ERROR_FAIL, ERROR_OK, size, and target_read_memory().
Referenced by riscv_read_by_any_size().
|
static |
Definition at line 3697 of file riscv.c.
References reg::arch_info, buf_set_u64(), buf_to_hex_str(), ERROR_FAIL, ERROR_OK, gdb_regno_cacheable(), gdb_regno_name(), GDB_REGNO_V0, GDB_REGNO_V31, LOG_DEBUG, LOG_ERROR, reg::name, reg::number, riscv_get_register(), RISCV_INFO, reg::size, riscv_reg_info_t::target, target_name(), reg::valid, and reg::value.
|
static |
Definition at line 3727 of file riscv.c.
References reg::arch_info, buf_get_u64(), buf_to_hex_str(), DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, gdb_regno_cacheable(), gdb_regno_name(), GDB_REGNO_TDATA1, GDB_REGNO_TDATA2, GDB_REGNO_V0, GDB_REGNO_V31, GDB_REGNO_ZERO, LOG_DEBUG, LOG_ERROR, reg::name, reg::number, riscv_enumerate_triggers(), RISCV_INFO, riscv_set_register(), reg::size, riscv_reg_info_t::target, target_name(), reg::valid, and reg::value.
Definition at line 913 of file riscv.c.
References target::coreid, ERROR_FAIL, ERROR_OK, GDB_REGNO_TDATA1, GDB_REGNO_TSELECT, LOG_DEBUG, LOG_ERROR, riscv_enumerate_triggers(), riscv_get_register(), RISCV_INFO, riscv_set_register(), and trigger::unique_id.
Referenced by riscv_remove_breakpoint(), and riscv_remove_watchpoint().
|
static |
Definition at line 1453 of file riscv.c.
References DBG_REASON_NOTHALTED, target::debug_reason, target::reg_cache, register_cache_invalidate(), target::state, target_call_event_callbacks(), TARGET_EVENT_RESUMED, and TARGET_RUNNING.
Referenced by riscv_resume().
|
static |
Resume all the harts that have been prepped, as close to instantaneous as possible.
Definition at line 1437 of file riscv.c.
References get_target_type(), target_type::resume, RISCV_INFO, and riscv_resume_go_all_harts().
Referenced by riscv_resume().
|
static |
Get everything ready to resume.
Definition at line 1398 of file riscv.c.
References watchpoint::address, target::coreid, DBG_REASON_WATCHPOINT, target::debug_reason, disable_triggers(), enable_triggers(), ERROR_FAIL, ERROR_OK, GDB_REGNO_PC, LOG_DEBUG, old_or_new_riscv_step(), RISCV_INFO, RISCV_MAX_HWBPS, riscv_resume_prep_all_harts(), and riscv_set_register().
Referenced by riscv_resume().
|
static |
Definition at line 865 of file riscv.c.
References add_trigger(), breakpoint::address, BKPT_HARD, BKPT_SOFT, buf_set_u32(), target::coreid, ebreak(), ebreak_c(), ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, breakpoint::is_set, breakpoint::length, LOG_DEBUG, LOG_ERROR, LOG_INFO, breakpoint::orig_instr, riscv_read_by_any_size(), riscv_write_by_any_size(), TARGET_PRIxADDR, trigger_from_breakpoint(), and breakpoint::type.
void riscv_add_bscan_tunneled_scan | ( | struct target * | target, |
struct scan_field * | field, | ||
riscv_bscan_tunneled_scan_context_t * | ctxt | ||
) |
Definition at line 4418 of file riscv.c.
References ARRAY_SIZE, bscan_one, BSCAN_TUNNEL_DATA_REGISTER, bscan_tunnel_type, bscan_zero, scan_field::in_value, jtag_add_dr_scan(), jtag_add_ir_scan(), scan_field::num_bits, scan_field::out_value, select_user4, target::tap, TAP_IDLE, riscv_bscan_tunneled_scan_context_t::tunneled_dr, and riscv_bscan_tunneled_scan_context_t::tunneled_dr_width.
Referenced by dmi_scan(), and riscv_batch_run().
int riscv_add_watchpoint | ( | struct target * | target, |
struct watchpoint * | watchpoint | ||
) |
Definition at line 988 of file riscv.c.
References add_trigger(), ERROR_OK, watchpoint::is_set, and trigger_from_watchpoint().
Referenced by enable_triggers(), and strict_step().
|
static |
Definition at line 1570 of file riscv.c.
References buf_get_u32(), buf_get_u64(), buffer, ERROR_FAIL, ERROR_OK, GDB_REGNO_SATP, get_field, info, LOG_DEBUG, LOG_ERROR, mask, mode, PTE_PPN_SHIFT, PTE_R, PTE_V, PTE_W, PTE_X, riscv_get_register(), RISCV_INFO, RISCV_PGSHIFT, RISCV_SATP_MODE, RISCV_SATP_PPN, riscv_xlen(), SATP_MODE_OFF, SATP_MODE_SV32, SATP_MODE_SV39, SATP_MODE_SV48, sv32, sv39, sv48, and TARGET_PRIxADDR.
Referenced by riscv_virt2phys().
|
static |
Definition at line 1823 of file riscv.c.
References target_type::arch_state, and get_target_type().
|
static |
Definition at line 1273 of file riscv.c.
References target_type::assert_reset, target::coreid, get_target_type(), LOG_DEBUG, and riscv_invalidate_register_cache().
|
static |
Definition at line 1991 of file riscv.c.
References working_area::address, buf_get_u32(), buf_set_u64(), count, destroy_reg_param(), ERROR_FAIL, ERROR_OK, init_reg_param(), LOG_DEBUG, LOG_ERROR, NULL, PARAM_IN_OUT, PARAM_OUT, riscv_xlen(), working_area::size, TARGET_ADDR_FMT, target_alloc_working_area(), target_free_working_area(), TARGET_PRIxADDR, target_run_algorithm(), target_write_buffer(), and reg_param::value.
int riscv_count_harts | ( | struct target * | target | ) |
Definition at line 3245 of file riscv.c.
References RISCV_INFO.
Referenced by deassert_reset(), and examine().
|
static |
Definition at line 430 of file riscv.c.
References target::arch_info, ERROR_FAIL, ERROR_OK, LOG_DEBUG, LOG_ERROR, and riscv_info_init().
int riscv_current_hartid | ( | const struct target * | target | ) |
Definition at line 3239 of file riscv.c.
References RISCV_INFO.
Referenced by register_read_direct(), register_write_direct(), riscv013_halt_reason(), riscv_hit_watchpoint(), riscv_openocd_poll(), and riscv_set_current_hartid().
|
static |
Definition at line 3063 of file riscv.c.
References RISCV_INFO, and riscv_xlen().
|
static |
Definition at line 1281 of file riscv.c.
References target::coreid, target_type::deassert_reset, get_target_type(), and LOG_DEBUG.
size_t riscv_debug_buffer_size | ( | struct target * | target | ) |
Definition at line 3391 of file riscv.c.
References RISCV_INFO.
Referenced by riscv_program_ebreak(), riscv_program_exec(), and riscv_program_insert().
|
static |
Definition at line 489 of file riscv.c.
References target::arch_info, target_type::deinit_target, get_target_type(), info, list_for_each_entry_safe, LOG_DEBUG, range_list_t::name, NULL, and riscv_free_registers().
int riscv_dmi_write_u64_bits | ( | struct target * | target | ) |
Definition at line 3434 of file riscv.c.
References RISCV_INFO.
Referenced by riscv_batch_add_dmi_read(), riscv_batch_add_dmi_write(), and riscv_batch_add_nop().
int riscv_enumerate_triggers | ( | struct target * | target | ) |
Count triggers, and initialize trigger_count for each hart.
trigger_count is initialized even if this function fails to discover something. Disable any hardware triggers that have dmode set. We can't have set them ourselves. Maybe they're left over from some killed debug session.
Definition at line 3447 of file riscv.c.
References ERROR_OK, GDB_REGNO_TDATA1, GDB_REGNO_TSELECT, get_field, LOG_DEBUG, LOG_INFO, MCONTROL_DMODE, MCONTROL_TYPE, riscv_get_register(), RISCV_INFO, RISCV_MAX_TRIGGERS, riscv_set_register(), riscv_xlen(), target_name(), and type.
Referenced by add_trigger(), COMMAND_HANDLER(), disable_triggers(), handle_halt(), register_set(), and remove_trigger().
|
static |
Definition at line 1119 of file riscv.c.
References dtmcontrol_scan(), DTMCONTROL_VERSION, ERROR_FAIL, ERROR_OK, target_type::examine, get_field, get_target_type(), info, target_type::init_target, LOG_DEBUG, RISCV_INFO, and target_was_examined().
int riscv_execute_debug_buffer | ( | struct target * | target | ) |
void riscv_fill_dmi_nop_u64 | ( | struct target * | target, |
char * | buf | ||
) |
Definition at line 3428 of file riscv.c.
References RISCV_INFO.
Referenced by riscv_batch_add_dmi_read(), riscv_batch_add_dmi_write(), and riscv_batch_add_nop().
void riscv_fill_dmi_read_u64 | ( | struct target * | target, |
char * | buf, | ||
int | a | ||
) |
Definition at line 3422 of file riscv.c.
References RISCV_INFO.
Referenced by riscv_batch_add_dmi_read().
void riscv_fill_dmi_write_u64 | ( | struct target * | target, |
char * | buf, | ||
int | a, | ||
uint64_t | d | ||
) |
Definition at line 3416 of file riscv.c.
References RISCV_INFO.
Referenced by riscv_batch_add_dmi_write().
|
static |
Definition at line 472 of file riscv.c.
References reg::arch_info, GDB_REGNO_COUNT, reg_cache::num_regs, target::reg_cache, reg_cache::reg_list, and reg::value.
Referenced by riscv_deinit_target(), and riscv_init_registers().
|
static |
Definition at line 1747 of file riscv.c.
References LOG_ERROR, NULL, and riscv_xlen().
|
static |
Definition at line 1815 of file riscv.c.
References riscv_get_gdb_reg_list_internal().
|
static |
Definition at line 1759 of file riscv.c.
References ERROR_FAIL, ERROR_OK, reg::exist, reg_arch_type::get, LOG_DEBUG, LOG_ERROR, reg_cache::num_regs, target::reg_cache, REG_CLASS_ALL, REG_CLASS_GENERAL, reg_cache::reg_list, RISCV_INFO, riscv_select_current_hart(), reg::size, target_name(), reg::type, and reg::valid.
Referenced by riscv_get_gdb_reg_list(), and riscv_get_gdb_reg_list_noread().
|
static |
Definition at line 1807 of file riscv.c.
References riscv_get_gdb_reg_list_internal().
int riscv_get_register | ( | struct target * | target, |
riscv_reg_t * | value, | ||
enum gdb_regno | regid | ||
) |
Get register, from the cache if it's in there.
Definition at line 3334 of file riscv.c.
References buf_get_u64(), ERROR_FAIL, ERROR_OK, reg::exist, gdb_regno_cacheable(), gdb_regno_name(), GDB_REGNO_XPR15, GDB_REGNO_XPR31, keep_alive(), LOG_DEBUG, target::reg_cache, reg_cache::reg_list, RISCV_INFO, riscv_supports_extension(), reg::size, target_name(), reg::valid, and reg::value.
Referenced by add_trigger(), disable_triggers(), enable_triggers(), maybe_add_trigger_t1(), maybe_add_trigger_t2(), maybe_add_trigger_t6(), register_get(), remove_trigger(), riscv_address_translate(), riscv_enumerate_triggers(), riscv_hit_watchpoint(), riscv_mmu(), riscv_program_exec(), and riscv_run_algorithm().
int riscv_halt | ( | struct target * | target | ) |
Definition at line 1226 of file riscv.c.
References target::coreid, ERROR_FAIL, ERROR_OK, foreach_smp_target, get_target_type(), target_type::halt, halt_finish(), halt_go(), halt_prep(), LOG_DEBUG, riscv_info::prepped, riscv_info(), RISCV_INFO, target::smp, target::smp_targets, and target_list::target.
Referenced by riscv013_step_or_resume_current_hart(), riscv_openocd_poll(), and riscv_run_algorithm().
|
static |
Definition at line 1186 of file riscv.c.
References ERROR_FAIL, ERROR_OK, LOG_DEBUG, RISCV_INFO, riscv_invalidate_register_cache(), riscv_is_halted(), riscv_select_current_hart(), and target_name().
Referenced by halt_go().
|
static |
|
static |
Definition at line 1023 of file riscv.c.
References watchpoint::address, buffer, ERROR_FAIL, ERROR_OK, GDB_REGNO_DPC, length, LOG_DEBUG, LOG_ERROR, MATCH_LB, MATCH_SB, watchpoint::next, riscv_current_hartid(), riscv_get_register(), TARGET_PRIxADDR, target_read_buffer(), and target::watchpoints.
|
static |
Definition at line 3123 of file riscv.c.
References riscv_info::common_magic, target::coreid, riscv_info::current_hartid, riscv_info::dtm_version, riscv_info::expose_csr, riscv_info::expose_custom, INIT_LIST_HEAD(), riscv_info::mem_access_abstract_warn, riscv_info::mem_access_methods, riscv_info::mem_access_progbuf_warn, riscv_info::mem_access_sysbus_warn, NULL, RISCV_COMMON_MAGIC, RISCV_MEM_ACCESS_ABSTRACT, RISCV_MEM_ACCESS_PROGBUF, RISCV_MEM_ACCESS_SYSBUS, riscv_info::trigger_unique_id, riscv_info::version_specific, and riscv_info::xlen.
Referenced by riscv_create_target().
int riscv_init_registers | ( | struct target * | target | ) |
Definition at line 3790 of file riscv.c.
References reg::arch_info, ARRAY_SIZE, reg::caller_save, cmp_csr_info(), CSR_CYCLEH, CSR_FCSR, CSR_FFLAGS, CSR_FRM, CSR_HPMCOUNTER10H, CSR_HPMCOUNTER11H, CSR_HPMCOUNTER12H, CSR_HPMCOUNTER13H, CSR_HPMCOUNTER14H, CSR_HPMCOUNTER15H, CSR_HPMCOUNTER16H, CSR_HPMCOUNTER17H, CSR_HPMCOUNTER18H, CSR_HPMCOUNTER19H, CSR_HPMCOUNTER20H, CSR_HPMCOUNTER21H, CSR_HPMCOUNTER22H, CSR_HPMCOUNTER23H, CSR_HPMCOUNTER24H, CSR_HPMCOUNTER25H, CSR_HPMCOUNTER26H, CSR_HPMCOUNTER27H, CSR_HPMCOUNTER28H, CSR_HPMCOUNTER29H, CSR_HPMCOUNTER30H, CSR_HPMCOUNTER31H, CSR_HPMCOUNTER3H, CSR_HPMCOUNTER4H, CSR_HPMCOUNTER5H, CSR_HPMCOUNTER6H, CSR_HPMCOUNTER7H, CSR_HPMCOUNTER8H, CSR_HPMCOUNTER9H, CSR_INSTRETH, CSR_MCYCLEH, CSR_MEDELEG, CSR_MHPMCOUNTER10H, CSR_MHPMCOUNTER11H, CSR_MHPMCOUNTER12H, CSR_MHPMCOUNTER13H, CSR_MHPMCOUNTER14H, CSR_MHPMCOUNTER15H, CSR_MHPMCOUNTER16H, CSR_MHPMCOUNTER17H, CSR_MHPMCOUNTER18H, CSR_MHPMCOUNTER19H, CSR_MHPMCOUNTER20H, CSR_MHPMCOUNTER21H, CSR_MHPMCOUNTER22H, CSR_MHPMCOUNTER23H, CSR_MHPMCOUNTER24H, CSR_MHPMCOUNTER25H, CSR_MHPMCOUNTER26H, CSR_MHPMCOUNTER27H, CSR_MHPMCOUNTER28H, CSR_MHPMCOUNTER29H, CSR_MHPMCOUNTER30H, CSR_MHPMCOUNTER31H, CSR_MHPMCOUNTER3H, CSR_MHPMCOUNTER4H, CSR_MHPMCOUNTER5H, CSR_MHPMCOUNTER6H, CSR_MHPMCOUNTER7H, CSR_MHPMCOUNTER8H, CSR_MHPMCOUNTER9H, CSR_MIDELEG, CSR_MINSTRETH, CSR_PMPCFG1, CSR_PMPCFG3, CSR_SATP, CSR_SCAUSE, CSR_SCOUNTEREN, CSR_SEPC, CSR_SIE, CSR_SIP, CSR_SSCRATCH, CSR_SSTATUS, CSR_STVAL, CSR_STVEC, CSR_TIMEH, CSR_VL, CSR_VLENB, CSR_VSTART, CSR_VTYPE, CSR_VXRM, CSR_VXSAT, reg::dirty, DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, reg::exist, reg::feature, reg_data_type_union::fields, GDB_REGNO_A0, GDB_REGNO_A1, GDB_REGNO_A2, GDB_REGNO_A3, GDB_REGNO_A4, GDB_REGNO_A5, GDB_REGNO_A6, GDB_REGNO_A7, GDB_REGNO_COUNT, GDB_REGNO_CSR0, GDB_REGNO_CSR4095, GDB_REGNO_FA0, GDB_REGNO_FA1, GDB_REGNO_FA2, GDB_REGNO_FA3, GDB_REGNO_FA4, GDB_REGNO_FA5, GDB_REGNO_FA6, GDB_REGNO_FA7, GDB_REGNO_FP, GDB_REGNO_FPR0, GDB_REGNO_FPR31, GDB_REGNO_FS0, GDB_REGNO_FS1, GDB_REGNO_FS10, GDB_REGNO_FS11, GDB_REGNO_FS2, GDB_REGNO_FS3, GDB_REGNO_FS4, GDB_REGNO_FS5, GDB_REGNO_FS6, GDB_REGNO_FS7, GDB_REGNO_FS8, GDB_REGNO_FS9, GDB_REGNO_FT0, GDB_REGNO_FT1, GDB_REGNO_FT10, GDB_REGNO_FT11, GDB_REGNO_FT2, GDB_REGNO_FT3, GDB_REGNO_FT4, GDB_REGNO_FT5, GDB_REGNO_FT6, GDB_REGNO_FT7, GDB_REGNO_FT8, GDB_REGNO_FT9, GDB_REGNO_GP, GDB_REGNO_PC, GDB_REGNO_PRIV, GDB_REGNO_RA, GDB_REGNO_S1, GDB_REGNO_S10, GDB_REGNO_S11, GDB_REGNO_S2, GDB_REGNO_S3, GDB_REGNO_S4, GDB_REGNO_S5, GDB_REGNO_S6, GDB_REGNO_S7, GDB_REGNO_S8, GDB_REGNO_S9, GDB_REGNO_SP, GDB_REGNO_T0, GDB_REGNO_T1, GDB_REGNO_T2, GDB_REGNO_T3, GDB_REGNO_T4, GDB_REGNO_T5, GDB_REGNO_T6, GDB_REGNO_TP, GDB_REGNO_V0, GDB_REGNO_V31, GDB_REGNO_XPR15, GDB_REGNO_XPR31, GDB_REGNO_ZERO, reg::group, range_list_t::high, info, list_empty(), list_first_entry, list_for_each_entry, list_rotate_left(), LOG_DEBUG, range_list_t::low, reg_feature::name, reg::name, reg_cache::name, csr_info::name, range_list_t::name, NULL, reg_cache::num_regs, number, reg::number, target::reg_cache, reg::reg_data_type, reg_cache::reg_list, REG_TYPE_ARCH_DEFINED, REG_TYPE_CLASS_UNION, REG_TYPE_CLASS_VECTOR, REG_TYPE_IEEE_DOUBLE, REG_TYPE_IEEE_SINGLE, REG_TYPE_UINT128, REG_TYPE_UINT16, REG_TYPE_UINT32, REG_TYPE_UINT64, REG_TYPE_UINT8, riscv_free_registers(), RISCV_INFO, riscv_reg_arch_type, riscv_supports_extension(), riscv_xlen(), reg::size, target, riscv_reg_info_t::target, reg_data_type::type, reg::type, reg::valid, and reg::value.
Referenced by examine(), and init_target().
|
static |
Definition at line 442 of file riscv.c.
References BSCAN_TUNNEL_DATA_REGISTER, bscan_tunnel_data_register_select_dmi, bscan_tunnel_ir_width, bscan_tunnel_nested_tap_select_dmi, bscan_tunnel_type, bscan_tunneled_ir_width, DBG_REASON_DBGRQ, target::debug_reason, ERROR_OK, h_u32_to_le(), info, jtag_tap::ir_length, ir_user4, LOG_DEBUG, scan_field::num_bits, RISCV_INFO, riscv_semihosting_init(), select_dbus, select_dtmcontrol, select_idcode, select_user4, and target::tap.
|
static |
Definition at line 3229 of file riscv.c.
References target::coreid, LOG_DEBUG, reg_cache::num_regs, target::reg_cache, reg_cache::reg_list, register_cache_invalidate(), and reg::valid.
Referenced by riscv_assert_reset(), riscv_halt_go_all_harts(), riscv_resume_go_all_harts(), and riscv_step_rtos_hart().
bool riscv_is_halted | ( | struct target * | target | ) |
Definition at line 3372 of file riscv.c.
Referenced by examine(), halt_prep(), register_write_direct(), riscv013_halt_go(), riscv013_step_or_resume_current_hart(), riscv_halt_go_all_harts(), riscv_resume_go_all_harts(), riscv_resume_prep_all_harts(), and riscv_step_rtos_hart().
|
static |
Definition at line 1525 of file riscv.c.
References ERROR_FAIL, ERROR_OK, GDB_REGNO_MSTATUS, GDB_REGNO_PRIV, GDB_REGNO_SATP, get_field, LOG_DEBUG, LOG_ERROR, MSTATUS_MPP, MSTATUS_MPRV, priv, PRV_M, riscv_enable_virt2phys, riscv_get_register(), RISCV_SATP_MODE, riscv_xlen(), and SATP_MODE_OFF.
Referenced by riscv_virt2phys().
int riscv_openocd_poll | ( | struct target * | target | ) |
Definition at line 2184 of file riscv.c.
References riscv_info::current_hartid, DBG_REASON_BREAKPOINT, DBG_REASON_NOTHALTED, target::debug_reason, ERROR_FAIL, ERROR_OK, foreach_smp_target, riscv_info::halt_reason, LOG_DEBUG, LOG_WARNING, riscv_current_hartid(), riscv_halt(), RISCV_HALT_BREAKPOINT, RISCV_HALT_GROUP, riscv_halt_reason(), riscv_info(), riscv_resume(), riscv_semihosting(), RPH_DISCOVERED_HALTED, RPH_DISCOVERED_RUNNING, RPH_ERROR, RPH_NO_CHANGE, sample_memory(), SEMIHOSTING_ERROR, SEMIHOSTING_HANDLED, SEMIHOSTING_NONE, SEMIHOSTING_WAITING, set_debug_reason(), target::smp, target::smp_targets, target::state, target_list::target, target_call_event_callbacks(), TARGET_EVENT_HALTED, TARGET_HALTED, and TARGET_RUNNING.
Referenced by old_or_new_riscv_poll().
int riscv_openocd_step | ( | struct target * | target, |
int | current, | ||
target_addr_t | address, | ||
int | handle_breakpoints | ||
) |
Definition at line 2303 of file riscv.c.
References DBG_REASON_SINGLESTEP, target::debug_reason, disable_triggers(), enable_triggers(), ERROR_FAIL, ERROR_OK, GDB_REGNO_PC, LOG_DEBUG, LOG_ERROR, target::reg_cache, register_cache_invalidate(), RISCV_MAX_HWBPS, riscv_set_register(), riscv_step_rtos_hart(), target::state, target_call_event_callbacks(), TARGET_EVENT_HALTED, TARGET_EVENT_RESUMED, TARGET_HALTED, and TARGET_RUNNING.
Referenced by old_or_new_riscv_step().
|
static |
int riscv_read_by_any_size | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | size, | ||
uint8_t * | buffer | ||
) |
Read one memory item using any memory access size that will work.
Read larger section of memory and pick out the required portion, if needed.
Definition at line 837 of file riscv.c.
References buffer, ERROR_FAIL, ERROR_OK, read_by_given_size(), and size.
Referenced by riscv_add_breakpoint().
riscv_insn_t riscv_read_debug_buffer | ( | struct target * | target, |
int | index | ||
) |
|
static |
Definition at line 1700 of file riscv.c.
References buffer, count, ERROR_FAIL, ERROR_OK, LOG_WARNING, RISCV_INFO, riscv_select_current_hart(), size, TARGET_PRIxADDR, target::type, and target_type::virt2phys.
|
static |
Definition at line 1691 of file riscv.c.
References buffer, count, ERROR_FAIL, ERROR_OK, RISCV_INFO, riscv_select_current_hart(), and size.
Referenced by sample_memory().
|
static |
Definition at line 945 of file riscv.c.
References breakpoint::address, BKPT_HARD, BKPT_SOFT, ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, breakpoint::is_set, breakpoint::length, LOG_ERROR, LOG_INFO, breakpoint::orig_instr, remove_trigger(), riscv_write_by_any_size(), TARGET_PRIxADDR, trigger_from_breakpoint(), and breakpoint::type.
int riscv_remove_watchpoint | ( | struct target * | target, |
struct watchpoint * | watchpoint | ||
) |
Definition at line 1001 of file riscv.c.
References watchpoint::address, target::coreid, ERROR_OK, watchpoint::is_set, LOG_DEBUG, remove_trigger(), TARGET_PRIxADDR, and trigger_from_watchpoint().
Referenced by disable_triggers(), and strict_step().
|
static |
Definition at line 1466 of file riscv.c.
References ERROR_FAIL, ERROR_OK, foreach_smp_target_direction, LOG_DEBUG, riscv_info::prepped, resume_finish(), resume_go(), resume_order, resume_prep(), riscv_info(), RO_NORMAL, target::smp, target::smp_targets, and target_list::target.
Referenced by riscv_openocd_poll(), riscv_run_algorithm(), and riscv_target_resume().
|
static |
Definition at line 3149 of file riscv.c.
References ERROR_FAIL, ERROR_OK, LOG_DEBUG, RISCV_INFO, riscv_invalidate_register_cache(), riscv_is_halted(), riscv_select_current_hart(), and target_name().
Referenced by resume_go().
|
static |
Definition at line 1288 of file riscv.c.
References ERROR_FAIL, ERROR_OK, LOG_DEBUG, RISCV_INFO, riscv_is_halted(), riscv_select_current_hart(), and target_name().
Referenced by resume_prep().
|
static |
Definition at line 1830 of file riscv.c.
References ARRAY_SIZE, buf_cpy(), buf_get_u64(), buf_set_u64(), direction, ERROR_FAIL, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_TIMEOUT, GDB_REGNO_A0, GDB_REGNO_A1, GDB_REGNO_A2, GDB_REGNO_A3, GDB_REGNO_A4, GDB_REGNO_A5, GDB_REGNO_A6, GDB_REGNO_A7, GDB_REGNO_FP, GDB_REGNO_GP, GDB_REGNO_MCAUSE, GDB_REGNO_MEPC, GDB_REGNO_MSTATUS, gdb_regno_name(), GDB_REGNO_PC, GDB_REGNO_RA, GDB_REGNO_S1, GDB_REGNO_S10, GDB_REGNO_S11, GDB_REGNO_S2, GDB_REGNO_S3, GDB_REGNO_S4, GDB_REGNO_S5, GDB_REGNO_S6, GDB_REGNO_S7, GDB_REGNO_S8, GDB_REGNO_S9, GDB_REGNO_SP, GDB_REGNO_T0, GDB_REGNO_T1, GDB_REGNO_T2, GDB_REGNO_T3, GDB_REGNO_T4, GDB_REGNO_T5, GDB_REGNO_T6, GDB_REGNO_TP, GDB_REGNO_XPR31, reg_arch_type::get, info, LOG_DEBUG, LOG_ERROR, LOG_TARGET_ERROR, MSTATUS_HIE, MSTATUS_MIE, MSTATUS_SIE, MSTATUS_UIE, reg::name, reg::number, old_or_new_riscv_poll(), PARAM_IN, PARAM_IN_OUT, PARAM_OUT, target::reg_cache, reg_param::reg_name, register_get_by_name(), riscv_get_register(), riscv_halt(), RISCV_INFO, riscv_resume(), riscv_select_current_hart(), reg_arch_type::set, set_field, reg_param::size, reg::size, start, target::state, TARGET_HALTED, TARGET_PRIxADDR, timeval_ms(), reg::type, reg_param::value, and reg::value.
|
static |
Definition at line 264 of file riscv.c.
References RISCV_INFO, RISCV_SAMPLE_BUF_TIMESTAMP_AFTER, RISCV_SAMPLE_BUF_TIMESTAMP_BEFORE, and timeval_ms().
Referenced by sample_memory().
int riscv_select_current_hart | ( | struct target * | target | ) |
Definition at line 1161 of file riscv.c.
References target::coreid, and riscv_set_current_hartid().
Referenced by halt_prep(), riscv013_get_register(), riscv013_get_register_buf(), riscv013_set_register_buf(), riscv_get_gdb_reg_list_internal(), riscv_halt_go_all_harts(), riscv_read_memory(), riscv_read_phys_memory(), riscv_resume_go_all_harts(), riscv_resume_prep_all_harts(), riscv_run_algorithm(), riscv_step_rtos_hart(), riscv_write_memory(), and riscv_write_phys_memory().
int riscv_set_current_hartid | ( | struct target * | target, |
int | hartid | ||
) |
Definition at line 3213 of file riscv.c.
References ERROR_FAIL, ERROR_OK, LOG_DEBUG, riscv_current_hartid(), and RISCV_INFO.
Referenced by examine(), and riscv_select_current_hart().
int riscv_set_register | ( | struct target * | target, |
enum gdb_regno | regid, | ||
riscv_reg_t | value | ||
) |
This function is called when the debug user wants to change the value of a register.
Set register, updating the cache.
The new value may be cached, and may not be written until the hart is resumed.
Definition at line 3308 of file riscv.c.
References buf_set_u64(), ERROR_OK, gdb_regno_cacheable(), gdb_regno_name(), GDB_REGNO_XPR15, GDB_REGNO_XPR31, keep_alive(), LOG_DEBUG, reg::name, target::reg_cache, reg_cache::reg_list, RISCV_INFO, riscv_supports_extension(), reg::size, target_name(), reg::valid, and reg::value.
Referenced by add_trigger(), disable_triggers(), enable_triggers(), maybe_add_trigger_t1(), maybe_add_trigger_t2(), maybe_add_trigger_t6(), read_memory_progbuf(), read_memory_progbuf_one(), register_set(), remove_trigger(), resume_prep(), riscv013_on_step_or_resume(), riscv_enumerate_triggers(), riscv_openocd_step(), riscv_program_exec(), and riscv_semihosting_post_result().
|
static |
Definition at line 3170 of file riscv.c.
References ERROR_FAIL, ERROR_OK, LOG_DEBUG, LOG_ERROR, RISCV_INFO, riscv_invalidate_register_cache(), riscv_is_halted(), riscv_select_current_hart(), and target_name().
Referenced by riscv_openocd_step().
bool riscv_supports_extension | ( | struct target * | target, |
char | letter | ||
) |
Definition at line 3194 of file riscv.c.
References BIT, and RISCV_INFO.
Referenced by examine(), register_read_direct(), register_write_direct(), riscv_get_register(), riscv_init_registers(), and riscv_set_register().
|
static |
Definition at line 1518 of file riscv.c.
References riscv_resume().
|
static |
Definition at line 1677 of file riscv.c.
References ERROR_FAIL, ERROR_OK, riscv_address_translate(), and riscv_mmu().
int riscv_write_by_any_size | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | size, | ||
uint8_t * | buffer | ||
) |
Write one memory item using any memory access size that will work.
Utilize read-modify-write, if needed.
Definition at line 805 of file riscv.c.
References buffer, ERROR_FAIL, ERROR_OK, size, and write_by_given_size().
Referenced by riscv_add_breakpoint(), and riscv_remove_breakpoint().
int riscv_write_debug_buffer | ( | struct target * | target, |
int | index, | ||
riscv_insn_t | insn | ||
) |
Definition at line 3397 of file riscv.c.
References ERROR_OK, and RISCV_INFO.
Referenced by riscv_program_write().
|
static |
Definition at line 1728 of file riscv.c.
References buffer, count, ERROR_FAIL, ERROR_OK, get_target_type(), LOG_WARNING, riscv_select_current_hart(), size, TARGET_PRIxADDR, target::type, target_type::virt2phys, and target_type::write_memory.
|
static |
Definition at line 1719 of file riscv.c.
References buffer, count, ERROR_FAIL, ERROR_OK, get_target_type(), riscv_select_current_hart(), size, and target_type::write_memory.
unsigned int riscv_xlen | ( | const struct target * | target | ) |
Definition at line 3207 of file riscv.c.
References RISCV_INFO.
Referenced by add_trigger(), cache_get(), cache_set(), COMMAND_HANDLER(), disable_triggers(), examine(), execute_resume(), fespi_write(), get_register(), handle_halt_routine(), load(), maybe_add_trigger_t2(), maybe_add_trigger_t6(), mem_should_skip_abstract(), mem_should_skip_progbuf(), prep_for_vector_access(), read_memory_abstract(), read_memory_progbuf(), read_memory_progbuf_inner(), read_memory_progbuf_one(), register_read_direct(), register_size(), register_write(), register_write_direct(), riscv013_data_bits(), riscv013_get_register_buf(), riscv013_set_register_buf(), riscv_address_translate(), riscv_checksum_memory(), riscv_data_bits(), riscv_enumerate_triggers(), riscv_get_gdb_arch(), riscv_init_registers(), riscv_mmu(), riscv_program_init(), riscv_xlen_nonconst(), scans_add_read(), scans_new(), slot_offset(), step(), store(), write_memory_abstract(), and write_memory_progbuf().
|
static |
Definition at line 3058 of file riscv.c.
References riscv_xlen().
|
static |
Definition at line 2136 of file riscv.c.
References ARRAY_SIZE, ERROR_NOT_IMPLEMENTED, ERROR_OK, LOG_DEBUG, LOG_INFO, RISCV_INFO, riscv_read_phys_memory(), riscv_sample_buf_maybe_add_timestamp(), RISCV_SAMPLE_BUF_TIMESTAMP_BEFORE, start, TARGET_DEFAULT_POLLING_INTERVAL, and timeval_ms().
Referenced by riscv_openocd_poll().
void select_dmi_via_bscan | ( | struct target * | target | ) |
Definition at line 282 of file riscv.c.
References BSCAN_TUNNEL_DATA_REGISTER, bscan_tunnel_data_register_select_dmi, bscan_tunnel_data_register_select_dmi_num_fields, bscan_tunnel_nested_tap_select_dmi, bscan_tunnel_nested_tap_select_dmi_num_fields, bscan_tunnel_type, jtag_add_dr_scan(), jtag_add_ir_scan(), select_user4, target::tap, and TAP_IDLE.
Referenced by dtmcontrol_scan_via_bscan(), and select_dmi().
|
static |
Definition at line 2110 of file riscv.c.
References DBG_REASON_BREAKPOINT, DBG_REASON_DBGRQ, DBG_REASON_SINGLESTEP, DBG_REASON_UNDEFINED, DBG_REASON_WATCHPOINT, target::debug_reason, ERROR_FAIL, ERROR_OK, LOG_DEBUG, RISCV_HALT_BREAKPOINT, RISCV_HALT_ERROR, RISCV_HALT_GROUP, RISCV_HALT_INTERRUPT, RISCV_HALT_SINGLESTEP, RISCV_HALT_TRIGGER, RISCV_HALT_UNKNOWN, and target_name().
Referenced by riscv_openocd_poll().
|
static |
Definition at line 521 of file riscv.c.
References breakpoint::address, trigger::address, trigger::execute, breakpoint::length, trigger::length, trigger::mask, trigger::read, breakpoint::unique_id, trigger::unique_id, and trigger::write.
Referenced by riscv_add_breakpoint(), and riscv_remove_breakpoint().
|
static |
Definition at line 974 of file riscv.c.
References watchpoint::address, trigger::address, trigger::execute, watchpoint::length, trigger::length, watchpoint::mask, trigger::mask, trigger::read, watchpoint::rw, watchpoint::unique_id, trigger::unique_id, watchpoint::value, trigger::value, WPT_ACCESS, WPT_READ, WPT_WRITE, and trigger::write.
Referenced by riscv_add_watchpoint(), and riscv_remove_watchpoint().
|
static |
Write one memory item of given "size".
Use memory access of given "access_size". Utilize read-modify-write, if needed.
Definition at line 751 of file riscv.c.
References buffer, ERROR_FAIL, ERROR_OK, size, target_read_memory(), and target_write_memory().
Referenced by riscv_write_by_any_size().
|
static |
|
static |
|
static |
Definition at line 132 of file riscv.c.
Referenced by dtmcontrol_scan_via_bscan(), and riscv_add_bscan_tunneled_scan().
|
static |
Definition at line 190 of file riscv.c.
Referenced by riscv_init_target(), and select_dmi_via_bscan().
|
static |
Definition at line 191 of file riscv.c.
Referenced by select_dmi_via_bscan().
int bscan_tunnel_ir_width |
Definition at line 129 of file riscv.c.
Referenced by COMMAND_HANDLER(), dmi_scan(), dtmcontrol_scan(), dtmcontrol_scan_via_bscan(), riscv_batch_alloc(), riscv_batch_run(), riscv_init_target(), and select_dmi().
|
static |
Definition at line 187 of file riscv.c.
Referenced by riscv_init_target(), and select_dmi_via_bscan().
|
static |
Definition at line 188 of file riscv.c.
Referenced by select_dmi_via_bscan().
|
static |
Definition at line 128 of file riscv.c.
Referenced by COMMAND_HANDLER(), dtmcontrol_scan_via_bscan(), riscv_add_bscan_tunneled_scan(), riscv_init_target(), and select_dmi_via_bscan().
|
static |
Definition at line 141 of file riscv.c.
Referenced by riscv_init_target().
|
static |
Definition at line 131 of file riscv.c.
Referenced by dtmcontrol_scan_via_bscan(), and riscv_add_bscan_tunneled_scan().
|
static |
Definition at line 117 of file riscv.c.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 112 of file riscv.c.
Referenced by COMMAND_HANDLER(), and dtmcontrol_scan_via_bscan().
|
static |
Definition at line 122 of file riscv.c.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 134 of file riscv.c.
Referenced by riscv_init_target().
enum { ... } resume_order |
Referenced by COMMAND_HANDLER(), and riscv_resume().
|
static |
int riscv_command_timeout_sec = DEFAULT_COMMAND_TIMEOUT_SEC |
Definition at line 203 of file riscv.c.
Referenced by COMMAND_HANDLER(), dmi_op(), dmstatus_read(), full_step(), read_sbcs_nonbusy(), riscv013_clear_abstract_error(), wait_for_authbusy(), wait_for_debugint_clear(), wait_for_idle(), wait_for_state(), and write_memory_bus_v1().
bool riscv_ebreakm = true |
Definition at line 209 of file riscv.c.
Referenced by assert_reset(), COMMAND_HANDLER(), execute_resume(), and riscv013_on_step_or_resume().
bool riscv_ebreaks = true |
Definition at line 210 of file riscv.c.
Referenced by assert_reset(), COMMAND_HANDLER(), execute_resume(), and riscv013_on_step_or_resume().
bool riscv_ebreaku = true |
Definition at line 211 of file riscv.c.
Referenced by assert_reset(), COMMAND_HANDLER(), execute_resume(), and riscv013_on_step_or_resume().
|
static |
Definition at line 208 of file riscv.c.
Referenced by COMMAND_HANDLER(), and riscv_mmu().
bool riscv_enable_virtual |
Definition at line 213 of file riscv.c.
Referenced by COMMAND_HANDLER(), examine(), modify_privilege(), read_memory_progbuf(), read_memory_progbuf_one(), and write_memory_progbuf().
|
static |
|
static |
Definition at line 3727 of file riscv.c.
Referenced by riscv_init_registers().
int riscv_reset_timeout_sec = DEFAULT_RESET_TIMEOUT_SEC |
Definition at line 206 of file riscv.c.
Referenced by COMMAND_HANDLER(), and deassert_reset().
struct target_type riscv_target |
struct scan_field select_dbus |
Definition at line 117 of file riscv.c.
Referenced by assert_reset(), deassert_reset(), dtmcontrol_scan(), halt(), idcode_scan(), poll_target(), read_memory(), riscv011_resume(), riscv_init_target(), select_dmi(), step(), and write_memory().
struct scan_field select_dtmcontrol |
Definition at line 112 of file riscv.c.
Referenced by dtmcontrol_scan(), and riscv_init_target().
struct scan_field select_idcode |
Definition at line 122 of file riscv.c.
Referenced by idcode_scan(), and riscv_init_target().
|
static |
Definition at line 134 of file riscv.c.
Referenced by dtmcontrol_scan_via_bscan(), riscv_add_bscan_tunneled_scan(), riscv_init_target(), and select_dmi_via_bscan().
|
static |
Definition at line 220 of file riscv.c.
Referenced by riscv_address_translate().
|
static |
Definition at line 233 of file riscv.c.
Referenced by riscv_address_translate().
|
static |
Definition at line 246 of file riscv.c.
Referenced by riscv_address_translate().