OpenOCD
riscv_info Struct Reference
Collaboration diagram for riscv_info:

Public Member Functions

 COMMAND_HELPER ((*print_info), struct target *target)
 

Data Fields

int(* authdata_read )(struct target *target, uint32_t *value, unsigned int index)
 
int(* authdata_write )(struct target *target, uint32_t value, unsigned int index)
 
struct command_contextcmd_ctx
 
unsigned int common_magic
 
int current_hartid
 
unsigned(* data_bits )(struct target *target)
 
int debug_buffer_size
 
int(* dmi_read )(struct target *target, uint32_t *value, uint32_t address)
 
int(* dmi_write )(struct target *target, uint32_t address, uint32_t value)
 
int(* dmi_write_u64_bits )(struct target *target)
 
unsigned dtm_version
 
int(* execute_debug_buffer )(struct target *target)
 
struct list_head expose_csr
 
struct list_head expose_custom
 
void(* fill_dmi_nop_u64 )(struct target *target, char *buf)
 
void(* fill_dmi_read_u64 )(struct target *target, char *buf, int a)
 
void(* fill_dmi_write_u64 )(struct target *target, char *buf, int a, uint64_t d)
 
int(* get_register )(struct target *target, riscv_reg_t *value, int regid)
 
int(* get_register_buf )(struct target *target, uint8_t *buf, int regno)
 
int(* halt_go )(struct target *target)
 
int(* halt_prep )(struct target *target)
 
enum riscv_halt_reason(* halt_reason )(struct target *target)
 
int(* hart_count )(struct target *target)
 
bool impebreak
 
bool(* is_halted )(struct target *target)
 
bool manual_hwbp_set
 
bool mem_access_abstract_warn
 
int mem_access_methods [RISCV_NUM_MEM_ACCESS_METHODS]
 
bool mem_access_progbuf_warn
 
bool mem_access_sysbus_warn
 
riscv_reg_t misa
 
int(* on_halt )(struct target *target)
 
int(* on_step )(struct target *target)
 
bool prepped
 
riscv_insn_t(* read_debug_buffer )(struct target *target, unsigned index)
 
int(* read_memory )(struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer, uint32_t increment)
 
char * reg_names
 
int reset_delays_wait
 
int(* resume_go )(struct target *target)
 
int(* resume_prep )(struct target *target)
 
struct riscv_sample_buf sample_buf
 
riscv_sample_config_t sample_config
 
int(* sample_memory )(struct target *target, struct riscv_sample_buf *buf, riscv_sample_config_t *config, int64_t until_ms)
 
int(* select_current_hart )(struct target *target)
 
bool selected
 
int(* set_register )(struct target *target, int regid, uint64_t value)
 
int(* set_register_buf )(struct target *target, int regno, const uint8_t *buf)
 
int(* step_current_hart )(struct target *target)
 
int(* test_sba_config_reg )(struct target *target, target_addr_t legal_address, uint32_t num_words, target_addr_t illegal_address, bool run_sbbusyerror_test)
 
unsigned int trigger_count
 
int trigger_unique_id [RISCV_MAX_HWBPS]
 
bool triggers_enumerated
 
struct reg_data_type type_uint128_vector
 
struct reg_data_type type_uint16_vector
 
struct reg_data_type type_uint32_vector
 
struct reg_data_type type_uint64_vector
 
struct reg_data_type type_uint8_vector
 
struct reg_data_type type_vector
 
struct reg_data_type_union_field vector_fields [5]
 
struct reg_data_type_vector vector_uint128
 
struct reg_data_type_vector vector_uint16
 
struct reg_data_type_vector vector_uint32
 
struct reg_data_type_vector vector_uint64
 
struct reg_data_type_vector vector_uint8
 
struct reg_data_type_union vector_union
 
void * version_specific
 
unsigned int vlenb
 
int(* write_debug_buffer )(struct target *target, unsigned index, riscv_insn_t d)
 
int xlen
 

Detailed Description

Definition at line 90 of file riscv.h.

Member Function Documentation

◆ COMMAND_HELPER()

riscv_info::COMMAND_HELPER ( print_info,
struct target target 
)

Field Documentation

◆ authdata_read

int(* riscv_info::authdata_read) (struct target *target, uint32_t *value, unsigned int index)

Definition at line 171 of file riscv.h.

◆ authdata_write

int(* riscv_info::authdata_write) (struct target *target, uint32_t value, unsigned int index)

Definition at line 172 of file riscv.h.

◆ cmd_ctx

struct command_context* riscv_info::cmd_ctx

Definition at line 95 of file riscv.h.

◆ common_magic

unsigned int riscv_info::common_magic

Definition at line 91 of file riscv.h.

Referenced by is_riscv(), and riscv_info_init().

◆ current_hartid

int riscv_info::current_hartid

Definition at line 102 of file riscv.h.

Referenced by riscv_info_init(), and riscv_openocd_poll().

◆ data_bits

unsigned(* riscv_info::data_bits) (struct target *target)

Definition at line 190 of file riscv.h.

◆ debug_buffer_size

int riscv_info::debug_buffer_size

Definition at line 124 of file riscv.h.

◆ dmi_read

int(* riscv_info::dmi_read) (struct target *target, uint32_t *value, uint32_t address)

Definition at line 174 of file riscv.h.

◆ dmi_write

int(* riscv_info::dmi_write) (struct target *target, uint32_t address, uint32_t value)

Definition at line 175 of file riscv.h.

◆ dmi_write_u64_bits

int(* riscv_info::dmi_write_u64_bits) (struct target *target)

Definition at line 166 of file riscv.h.

◆ dtm_version

unsigned riscv_info::dtm_version

Definition at line 93 of file riscv.h.

Referenced by riscv_info_init().

◆ execute_debug_buffer

int(* riscv_info::execute_debug_buffer) (struct target *target)

Definition at line 165 of file riscv.h.

◆ expose_csr

struct list_head riscv_info::expose_csr

Definition at line 220 of file riscv.h.

Referenced by riscv_info_init().

◆ expose_custom

struct list_head riscv_info::expose_custom

Definition at line 220 of file riscv.h.

Referenced by riscv_info_init().

◆ fill_dmi_nop_u64

void(* riscv_info::fill_dmi_nop_u64) (struct target *target, char *buf)

Definition at line 169 of file riscv.h.

◆ fill_dmi_read_u64

void(* riscv_info::fill_dmi_read_u64) (struct target *target, char *buf, int a)

Definition at line 168 of file riscv.h.

◆ fill_dmi_write_u64

void(* riscv_info::fill_dmi_write_u64) (struct target *target, char *buf, int a, uint64_t d)

Definition at line 167 of file riscv.h.

◆ get_register

int(* riscv_info::get_register) (struct target *target, riscv_reg_t *value, int regid)

Definition at line 142 of file riscv.h.

◆ get_register_buf

int(* riscv_info::get_register_buf) (struct target *target, uint8_t *buf, int regno)

Definition at line 144 of file riscv.h.

◆ halt_go

int(* riscv_info::halt_go) (struct target *target)

Definition at line 159 of file riscv.h.

◆ halt_prep

int(* riscv_info::halt_prep) (struct target *target)

Definition at line 158 of file riscv.h.

◆ halt_reason

enum riscv_halt_reason(* riscv_info::halt_reason) (struct target *target)

Definition at line 160 of file riscv.h.

Referenced by riscv_openocd_poll().

◆ hart_count

int(* riscv_info::hart_count) (struct target *target)

Definition at line 189 of file riscv.h.

◆ impebreak

bool riscv_info::impebreak

Definition at line 127 of file riscv.h.

◆ is_halted

bool(* riscv_info::is_halted) (struct target *target)

Definition at line 148 of file riscv.h.

◆ manual_hwbp_set

bool riscv_info::manual_hwbp_set

Definition at line 211 of file riscv.h.

◆ mem_access_abstract_warn

bool riscv_info::mem_access_abstract_warn

Definition at line 220 of file riscv.h.

Referenced by riscv_info_init().

◆ mem_access_methods

int riscv_info::mem_access_methods[RISCV_NUM_MEM_ACCESS_METHODS]

Definition at line 214 of file riscv.h.

Referenced by riscv_info_init().

◆ mem_access_progbuf_warn

bool riscv_info::mem_access_progbuf_warn

Definition at line 218 of file riscv.h.

Referenced by riscv_info_init().

◆ mem_access_sysbus_warn

bool riscv_info::mem_access_sysbus_warn

Definition at line 219 of file riscv.h.

Referenced by riscv_info_init().

◆ misa

riscv_reg_t riscv_info::misa

Definition at line 110 of file riscv.h.

◆ on_halt

int(* riscv_info::on_halt) (struct target *target)

Definition at line 154 of file riscv.h.

◆ on_step

int(* riscv_info::on_step) (struct target *target)

Definition at line 160 of file riscv.h.

◆ prepped

bool riscv_info::prepped

Definition at line 136 of file riscv.h.

Referenced by riscv_halt(), riscv_resume(), and select_prepped_harts().

◆ read_debug_buffer

riscv_insn_t(* riscv_info::read_debug_buffer) (struct target *target, unsigned index)

Definition at line 164 of file riscv.h.

◆ read_memory

int(* riscv_info::read_memory) (struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer, uint32_t increment)

Definition at line 185 of file riscv.h.

◆ reg_names

char* riscv_info::reg_names

Definition at line 106 of file riscv.h.

◆ reset_delays_wait

int riscv_info::reset_delays_wait

Definition at line 133 of file riscv.h.

◆ resume_go

int(* riscv_info::resume_go) (struct target *target)

Definition at line 152 of file riscv.h.

◆ resume_prep

int(* riscv_info::resume_prep) (struct target *target)

Definition at line 157 of file riscv.h.

◆ sample_buf

struct riscv_sample_buf riscv_info::sample_buf

Definition at line 230 of file riscv.h.

◆ sample_config

riscv_sample_config_t riscv_info::sample_config

Definition at line 230 of file riscv.h.

◆ sample_memory

int(* riscv_info::sample_memory) (struct target *target, struct riscv_sample_buf *buf, riscv_sample_config_t *config, int64_t until_ms)

Definition at line 180 of file riscv.h.

◆ select_current_hart

int(* riscv_info::select_current_hart) (struct target *target)

Definition at line 147 of file riscv.h.

◆ selected

bool riscv_info::selected

Definition at line 138 of file riscv.h.

Referenced by select_prepped_harts().

◆ set_register

int(* riscv_info::set_register) (struct target *target, int regid, uint64_t value)

Definition at line 143 of file riscv.h.

◆ set_register_buf

int(* riscv_info::set_register_buf) (struct target *target, int regno, const uint8_t *buf)

Definition at line 145 of file riscv.h.

◆ step_current_hart

int(* riscv_info::step_current_hart) (struct target *target)

Definition at line 153 of file riscv.h.

◆ test_sba_config_reg

int(* riscv_info::test_sba_config_reg) (struct target *target, target_addr_t legal_address, uint32_t num_words, target_addr_t illegal_address, bool run_sbbusyerror_test)

Definition at line 177 of file riscv.h.

◆ trigger_count

unsigned int riscv_info::trigger_count

Definition at line 115 of file riscv.h.

◆ trigger_unique_id

int riscv_info::trigger_unique_id[RISCV_MAX_HWBPS]

Definition at line 121 of file riscv.h.

Referenced by riscv_info_init().

◆ triggers_enumerated

bool riscv_info::triggers_enumerated

Definition at line 129 of file riscv.h.

◆ type_uint128_vector

struct reg_data_type riscv_info::type_uint128_vector

Definition at line 192 of file riscv.h.

◆ type_uint16_vector

struct reg_data_type riscv_info::type_uint16_vector

Definition at line 192 of file riscv.h.

◆ type_uint32_vector

struct reg_data_type riscv_info::type_uint32_vector

Definition at line 192 of file riscv.h.

◆ type_uint64_vector

struct reg_data_type riscv_info::type_uint64_vector

Definition at line 192 of file riscv.h.

◆ type_uint8_vector

struct reg_data_type riscv_info::type_uint8_vector

Definition at line 192 of file riscv.h.

◆ type_vector

struct reg_data_type riscv_info::type_vector

Definition at line 192 of file riscv.h.

◆ vector_fields

struct reg_data_type_union_field riscv_info::vector_fields[5]

Definition at line 192 of file riscv.h.

◆ vector_uint128

struct reg_data_type_vector riscv_info::vector_uint128

Definition at line 192 of file riscv.h.

◆ vector_uint16

struct reg_data_type_vector riscv_info::vector_uint16

Definition at line 192 of file riscv.h.

◆ vector_uint32

struct reg_data_type_vector riscv_info::vector_uint32

Definition at line 192 of file riscv.h.

◆ vector_uint64

struct reg_data_type_vector riscv_info::vector_uint64

Definition at line 192 of file riscv.h.

◆ vector_uint8

struct reg_data_type_vector riscv_info::vector_uint8

Definition at line 192 of file riscv.h.

◆ vector_union

struct reg_data_type_union riscv_info::vector_union

Definition at line 192 of file riscv.h.

◆ version_specific

void* riscv_info::version_specific

Definition at line 96 of file riscv.h.

Referenced by riscv_info_init().

◆ vlenb

unsigned int riscv_info::vlenb

Definition at line 112 of file riscv.h.

Referenced by discover_vlenb().

◆ write_debug_buffer

int(* riscv_info::write_debug_buffer) (struct target *target, unsigned index, riscv_insn_t d)

Definition at line 162 of file riscv.h.

◆ xlen

int riscv_info::xlen

Definition at line 109 of file riscv.h.

Referenced by examine(), fespi_write(), riscv013_get_register_buf(), and riscv_info_init().


The documentation for this struct was generated from the following file: