OpenOCD
riscv_info
is only used within OpenOCD.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
Development Tools
OpenOCD
riscv_info
riscv_info struct
Syntax
Show:
Summary
Declaration
from
riscv.h:90
struct
riscv_info
{
unsigned
int
common_magic
;
unsigned
dtm_version
;
struct
command_context
*
cmd_ctx
;
void
*
version_specific
;
int
current_hartid
;
char
*
reg_names
;
int
xlen
;
riscv_reg_t
misa
;
unsigned
int
vlenb
;
unsigned
int
trigger_count
;
int
trigger_unique_id
[
RISCV_MAX_HWBPS
]
;
int
debug_buffer_size
;
bool
impebreak
;
bool
triggers_enumerated
;
int
reset_delays_wait
;
bool
prepped
;
bool
selected
;
int
(
*
get_register
)
(
struct
target
*
target
,
riscv_reg_t
*
value
,
int
regid
)
;
int
(
*
set_register
)
(
struct
target
*
target
,
int
regid
,
uint64_t
value
)
;
int
(
*
get_register_buf
)
(
struct
target
*
target
,
uint8_t
*
buf
,
int
regno
)
;
int
(
*
set_register_buf
)
(
struct
target
*
target
,
int
regno
,
const
uint8_t
*
buf
)
;
int
(
*
select_current_hart
)
(
struct
target
*
target
)
;
bool
(
*
is_halted
)
(
struct
target
*
target
)
;
int
(
*
resume_go
)
(
struct
target
*
target
)
;
int
(
*
step_current_hart
)
(
struct
target
*
target
)
;
int
(
*
on_halt
)
(
struct
target
*
target
)
;
int
(
*
resume_prep
)
(
struct
target
*
target
)
;
int
(
*
halt_prep
)
(
struct
target
*
target
)
;
int
(
*
halt_go
)
(
struct
target
*
target
)
;
int
(
*
on_step
)
(
struct
target
*
target
)
;
enum
riscv_halt_reason
(
*
halt_reason
)
(
struct
target
*
target
)
;
int
(
*
write_debug_buffer
)
(
struct
target
*
target
,
unsigned
index
,
riscv_insn_t
d
)
;
riscv_insn_t
(
*
read_debug_buffer
)
(
struct
target
*
target
,
unsigned
index
)
;
int
(
*
execute_debug_buffer
)
(
struct
target
*
target
)
;
int
(
*
dmi_write_u64_bits
)
(
struct
target
*
target
)
;
void
(
*
fill_dmi_write_u64
)
(
struct
target
*
target
,
char
*
buf
,
int
a
,
uint64_t
d
)
;
void
(
*
fill_dmi_read_u64
)
(
struct
target
*
target
,
char
*
buf
,
int
a
)
;
void
(
*
fill_dmi_nop_u64
)
(
struct
target
*
target
,
char
*
buf
)
;
int
(
*
authdata_read
)
(
struct
target
*
target
,
uint32_t
*
value
,
unsigned
int
index
)
;
int
(
*
authdata_write
)
(
struct
target
*
target
,
uint32_t
value
,
unsigned
int
index
)
;
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
(
*
sample_memory
)
(
struct
target
*
target
,
struct
riscv_sample_buf
*
buf
,
riscv_sample_config_t
*
config
,
int64_t
until_ms
)
;
int
(
*
read_memory
)
(
struct
target
*
target
,
target_addr_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
,
uint32_t
increment
)
;
int
(
*
hart_count
)
(
struct
target
*
target
)
;
unsigned
(
*
data_bits
)
(
struct
target
*
target
)
;
COMMAND_HELPER
(
(
*
print_info
)
,
struct
target
*
target
)
;
struct
reg_data_type_vector
vector_uint8
;
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_uint128
;
struct
reg_data_type
type_uint8_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_uint128_vector
;
struct
reg_data_type_union_field
vector_fields
[
5
]
;
struct
reg_data_type_union
vector_union
;
struct
reg_data_type
type_vector
;
bool
manual_hwbp_set
;
int
mem_access_methods
[
RISCV_NUM_MEM_ACCESS_METHODS
]
;
bool
mem_access_progbuf_warn
;
bool
mem_access_sysbus_warn
;
bool
mem_access_abstract_warn
;
struct
list_head
expose_csr
;
struct
list_head
expose_custom
;
riscv_sample_config_t
sample_config
;
struct
riscv_sample_buf
sample_buf
;
}
;
Fields
Field
Declared as
riscv_info::common_magic
unsigned
int
riscv_info::dtm_version
unsigned
riscv_info::cmd_ctx
struct
command_context
*
riscv_info::version_specific
void
*
riscv_info::current_hartid
int
riscv_info::reg_names
char
*
riscv_info::xlen
int
riscv_info::misa
riscv_reg_t
riscv_info::vlenb
unsigned
int
riscv_info::trigger_count
unsigned
int
riscv_info::trigger_unique_id
int
[
RISCV_MAX_HWBPS
]
riscv_info::debug_buffer_size
int
riscv_info::impebreak
bool
riscv_info::triggers_enumerated
bool
riscv_info::reset_delays_wait
int
riscv_info::prepped
bool
riscv_info::selected
bool
riscv_info::get_register
int
(
*
)
(
struct
target
*
target
,
riscv_reg_t
*
value
,
int
regid
)
riscv_info::set_register
int
(
*
)
(
struct
target
*
target
,
int
regid
,
uint64_t
value
)
riscv_info::get_register_buf
int
(
*
)
(
struct
target
*
target
,
uint8_t
*
buf
,
int
regno
)
riscv_info::set_register_buf
int
(
*
)
(
struct
target
*
target
,
int
regno
,
const
uint8_t
*
buf
)
riscv_info::select_current_hart
int
(
*
)
(
struct
target
*
target
)
riscv_info::is_halted
bool
(
*
)
(
struct
target
*
target
)
riscv_info::resume_go
int
(
*
)
(
struct
target
*
target
)
riscv_info::step_current_hart
int
(
*
)
(
struct
target
*
target
)
riscv_info::on_halt
int
(
*
)
(
struct
target
*
target
)
riscv_info::resume_prep
int
(
*
)
(
struct
target
*
target
)
riscv_info::halt_prep
int
(
*
)
(
struct
target
*
target
)
riscv_info::halt_go
int
(
*
)
(
struct
target
*
target
)
riscv_info::on_step
int
(
*
)
(
struct
target
*
target
)
riscv_info::halt_reason
enum
riscv_halt_reason
(
*
)
(
struct
target
*
target
)
riscv_info::write_debug_buffer
int
(
*
)
(
struct
target
*
target
,
unsigned
index
,
riscv_insn_t
d
)
riscv_info::read_debug_buffer
riscv_insn_t
(
*
)
(
struct
target
*
target
,
unsigned
index
)
riscv_info::execute_debug_buffer
int
(
*
)
(
struct
target
*
target
)
riscv_info::dmi_write_u64_bits
int
(
*
)
(
struct
target
*
target
)
riscv_info::fill_dmi_write_u64
void
(
*
)
(
struct
target
*
target
,
char
*
buf
,
int
a
,
uint64_t
d
)
riscv_info::fill_dmi_read_u64
void
(
*
)
(
struct
target
*
target
,
char
*
buf
,
int
a
)
riscv_info::fill_dmi_nop_u64
void
(
*
)
(
struct
target
*
target
,
char
*
buf
)
riscv_info::authdata_read
int
(
*
)
(
struct
target
*
target
,
uint32_t
*
value
,
unsigned
int
index
)
riscv_info::authdata_write
int
(
*
)
(
struct
target
*
target
,
uint32_t
value
,
unsigned
int
index
)
riscv_info::dmi_read
int
(
*
)
(
struct
target
*
target
,
uint32_t
*
value
,
uint32_t
address
)
riscv_info::dmi_write
int
(
*
)
(
struct
target
*
target
,
uint32_t
address
,
uint32_t
value
)
riscv_info::sample_memory
int
(
*
)
(
struct
target
*
target
,
struct
riscv_sample_buf
*
buf
,
riscv_sample_config_t
*
config
,
int64_t
until_ms
)
riscv_info::read_memory
int
(
*
)
(
struct
target
*
target
,
target_addr_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
,
uint32_t
increment
)
riscv_info::hart_count
int
(
*
)
(
struct
target
*
target
)
riscv_info::data_bits
unsigned
(
*
)
(
struct
target
*
target
)
riscv_info::print_info
COMMAND_HELPER
(
(
*
riscv_info::vector_uint8
struct
reg_data_type_vector
riscv_info::vector_uint16
struct
reg_data_type_vector
riscv_info::vector_uint32
struct
reg_data_type_vector
riscv_info::vector_uint64
struct
reg_data_type_vector
riscv_info::vector_uint128
struct
reg_data_type_vector
riscv_info::type_uint8_vector
struct
reg_data_type
riscv_info::type_uint16_vector
struct
reg_data_type
riscv_info::type_uint32_vector
struct
reg_data_type
riscv_info::type_uint64_vector
struct
reg_data_type
riscv_info::type_uint128_vector
struct
reg_data_type
riscv_info::vector_fields
struct
reg_data_type_union_field
[
5
]
riscv_info::vector_union
struct
reg_data_type_union
riscv_info::type_vector
struct
reg_data_type
riscv_info::manual_hwbp_set
bool
riscv_info::mem_access_methods
int
[
RISCV_NUM_MEM_ACCESS_METHODS
]
riscv_info::mem_access_progbuf_warn
bool
riscv_info::mem_access_sysbus_warn
bool
riscv_info::mem_access_abstract_warn
bool
riscv_info::expose_csr
struct
list_head
riscv_info::expose_custom
struct
list_head
riscv_info::sample_config
riscv_sample_config_t
riscv_info::sample_buf
struct
riscv_sample_buf
Related Functions
Found 2 other functions taking a
riscv_info
argument:
Function
Description
is_riscv()
riscv_info_init()
RISC-V Interface **
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out