OpenOCD
riscv-011_reg.c File Reference
Include dependency graph for riscv-011_reg.c:

Go to the source code of this file.

Functions

static const struct reg_arch_typeriscv011_gdb_regno_reg_type (uint32_t regno)
 
static int riscv011_reg_get (struct reg *reg)
 
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...
 
static int riscv011_reg_set (struct reg *reg, uint8_t *buf)
 

Function Documentation

◆ riscv011_gdb_regno_reg_type()

static const struct reg_arch_type* riscv011_gdb_regno_reg_type ( uint32_t  regno)
static

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

References reg_arch_type::get, riscv011_reg_get(), and riscv011_reg_set().

Referenced by riscv011_reg_init_all().

◆ riscv011_reg_get()

static int riscv011_reg_get ( struct reg reg)
static

◆ 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().

◆ riscv011_reg_set()

static int riscv011_reg_set ( struct reg reg,
uint8_t *  buf 
)
static