|
OpenOCD
|


Go to the source code of this file.
Functions | |
| uint32_t | riscv013_access_register_command (struct target *target, uint32_t number, unsigned int size, uint32_t flags) |
| int | riscv013_execute_abstract_command (struct target *target, uint32_t command, uint32_t *cmderr) |
| int | riscv013_get_register (struct target *target, riscv_reg_t *value, enum gdb_regno rid) |
| int | riscv013_get_register_buf (struct target *target, uint8_t *value, enum gdb_regno regno) |
| int | riscv013_set_register (struct target *target, enum gdb_regno rid, riscv_reg_t value) |
| int | riscv013_set_register_buf (struct target *target, enum gdb_regno regno, const uint8_t *value) |
| uint32_t riscv013_access_register_command | ( | struct target * | target, |
| uint32_t | number, | ||
| unsigned int | size, | ||
| uint32_t | flags | ||
| ) |
Definition at line 879 of file riscv-013.c.
References AC_ACCESS_REGISTER_AARSIZE, AC_ACCESS_REGISTER_REGNO, reg::arch_info, riscv_reg_info_t::custom_number, DM_COMMAND_CMDTYPE, GDB_REGNO_COUNT, GDB_REGNO_CSR0, GDB_REGNO_CSR4095, GDB_REGNO_FPR0, GDB_REGNO_FPR31, GDB_REGNO_XPR31, GDB_REGNO_ZERO, LOG_TARGET_ERROR, number, target::reg_cache, reg_cache::reg_list, riscv_reg_gdb_regno_name(), set_field(), and size.
Referenced by examine_xlen(), read_memory_progbuf_inner_startup(), register_read_abstract_with_size(), register_write_abstract(), and write_memory_progbuf_startup().
| int riscv013_execute_abstract_command | ( | struct target * | target, |
| uint32_t | command, | ||
| uint32_t * | cmderr | ||
| ) |
Definition at line 740 of file riscv-013.c.
References abstract_cmd_batch_check_and_clear_cmderr(), abstract_cmd_fill_batch(), dm013_info_t::abstract_cmd_maybe_busy, ABSTRACT_COMMAND_BATCH_SIZE, batch_run_timeout(), CMDERR_NONE, CMDERR_NOT_SUPPORTED, DM_COMMAND_CMDTYPE, ERROR_FAIL, ERROR_OK, get_dm(), get_field(), LOG_DEBUG_REG, LOG_LEVEL_IS, LOG_LVL_DEBUG, LOG_TARGET_DEBUG, mark_command_as_unsupported(), riscv_batch_alloc(), and riscv_batch_free().
Referenced by examine_xlen(), read_memory_progbuf_inner_startup(), register_read_abstract_with_size(), riscv013_execute_progbuf(), and write_memory_progbuf_startup().
| int riscv013_get_register | ( | struct target * | target, |
| riscv_reg_t * | value, | ||
| enum gdb_regno | rid | ||
| ) |
Definition at line 5110 of file riscv-013.c.
References CSR_DCSR_PRV, CSR_DCSR_V, dm013_select_target(), ERROR_FAIL, ERROR_OK, GDB_REGNO_DCSR, GDB_REGNO_PRIV, get_field(), LOG_TARGET_DEBUG, register_read_direct(), rid, riscv_reg_gdb_regno_name(), riscv_reg_get(), set_field(), VIRT_PRIV_PRV, and VIRT_PRIV_V.
Referenced by riscv_reg_get().
Definition at line 2364 of file riscv-013.c.
References buf_set_u64(), cleanup_after_vector_access(), dm013_select_target(), ERROR_FAIL, ERROR_OK, GDB_REGNO_S0, GDB_REGNO_V0, GDB_REGNO_V31, LOG_TARGET_ERROR, prep_for_vector_access(), register_read_direct(), riscv013_reg_save(), riscv_program_exec(), riscv_program_init(), riscv_program_insert(), riscv_reg_gdb_regno_name(), S0, vmv_x_s(), and vslide1down_vx().
Referenced by riscv013_reg_get().
| int riscv013_set_register | ( | struct target * | target, |
| enum gdb_regno | rid, | ||
| riscv_reg_t | value | ||
| ) |
Definition at line 5139 of file riscv-013.c.
References dm013_select_target(), ERROR_FAIL, ERROR_OK, LOG_TARGET_DEBUG, register_write_direct(), rid, and riscv_reg_gdb_regno_name().
Referenced by riscv_set_or_write_register().
| int riscv013_set_register_buf | ( | struct target * | target, |
| enum gdb_regno | regno, | ||
| const uint8_t * | value | ||
| ) |
Definition at line 2419 of file riscv-013.c.
References buf_get_u64(), cleanup_after_vector_access(), dm013_select_target(), ERROR_FAIL, ERROR_OK, GDB_REGNO_S0, GDB_REGNO_V0, GDB_REGNO_V31, prep_for_vector_access(), register_write_direct(), riscv013_reg_save(), riscv_program_exec(), riscv_program_init(), riscv_program_insert(), S0, and vslide1down_vx().
Referenced by riscv013_reg_set().