OpenOCD
riscv-011_reg.h File Reference
Include dependency graph for riscv-011_reg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int riscv011_reg_init_all (struct target *target)
 This file describes additional register cache interface available to the RISC-V Debug Specification v0.11 targets. More...
 

Function Documentation

◆ riscv011_reg_init_all()

int riscv011_reg_init_all ( struct target target)

This file describes additional register cache interface available to the RISC-V Debug Specification v0.11 targets.

Initialize register cache. After this function all registers can be safely accessed via functions described here and in riscv_reg.h.

Definition at line 40 of file riscv-011_reg.c.

References ARRAY_SIZE, ERROR_FAIL, ERROR_OK, GDB_REGNO_MTOPEI, GDB_REGNO_MTOPI, GDB_REGNO_VLENB, init_shared_reg_info(), reg_cache::num_regs, target::reg_cache, riscv011_gdb_regno_reg_type(), RISCV_INFO, riscv_reg_impl_cache_entry(), riscv_reg_impl_expose_csrs(), riscv_reg_impl_gdb_regno_exist(), riscv_reg_impl_hide_csrs(), riscv_reg_impl_init_cache(), riscv_reg_impl_init_cache_entry(), and riscv_reg_impl_is_initialized().

Referenced by examine(), and init_target().