OpenOCD
|
Go to the source code of this file.
Macros | |
#define | S0 8 |
#define | S1 9 |
#define | T0 5 |
#define | ZERO 0 |
Functions | |
static uint32_t | addi (unsigned int dest, unsigned int src, uint16_t imm) __attribute__((unused)) |
static uint32_t | auipc (unsigned int dest) __attribute__((unused)) |
static uint32_t | bit (uint32_t value, unsigned int b) |
static uint32_t | bits (uint32_t value, unsigned int hi, unsigned int lo) |
static uint32_t | csrr (unsigned int rd, unsigned int csr) __attribute__((unused)) |
static uint32_t | csrrci (unsigned int rd, unsigned int zimm, unsigned int csr) __attribute__((unused)) |
static uint32_t | csrrs (unsigned int rd, unsigned int rs, unsigned int csr) __attribute__((unused)) |
static uint32_t | csrrsi (unsigned int rd, unsigned int zimm, unsigned int csr) __attribute__((unused)) |
static uint32_t | csrrw (unsigned int rd, unsigned int rs, unsigned int csr) __attribute__((unused)) |
static uint32_t | csrsi (unsigned int csr, uint16_t imm) __attribute__((unused)) |
static uint32_t | csrw (unsigned int source, unsigned int csr) __attribute__((unused)) |
static uint32_t | ebreak (void) __attribute__((unused)) |
static uint32_t | ebreak_c (void) __attribute__((unused)) |
static uint32_t | fence (void) __attribute__((unused)) |
static uint32_t | fence_i (void) __attribute__((unused)) |
static uint32_t | fld (unsigned int dest, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | flw (unsigned int dest, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | fmv_d_x (unsigned dest, unsigned src) __attribute__((unused)) |
static uint32_t | fmv_w_x (unsigned dest, unsigned src) __attribute__((unused)) |
static uint32_t | fmv_x_d (unsigned dest, unsigned src) __attribute__((unused)) |
static uint32_t | fmv_x_w (unsigned dest, unsigned src) __attribute__((unused)) |
static uint32_t | fsd (unsigned int src, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | fsw (unsigned int src, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | imm_b (uint32_t imm) __attribute__((unused)) |
static uint32_t | imm_i (uint32_t imm) __attribute__((unused)) |
static uint32_t | imm_j (uint32_t imm) __attribute__((unused)) |
static uint32_t | imm_s (uint32_t imm) __attribute__((unused)) |
static uint32_t | imm_u (uint32_t imm) __attribute__((unused)) |
static uint32_t | inst_rd (uint32_t r) __attribute__((unused)) |
static uint32_t | inst_rs1 (uint32_t r) __attribute__((unused)) |
static uint32_t | inst_rs2 (uint32_t r) __attribute__((unused)) |
static uint32_t | jal (unsigned int rd, uint32_t imm) __attribute__((unused)) |
static uint32_t | lb (unsigned int rd, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | ld (unsigned int rd, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | lh (unsigned int rd, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | lui (unsigned int dest, uint32_t imm) __attribute__((unused)) |
static uint32_t | lw (unsigned int rd, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | sb (unsigned int src, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | sd (unsigned int src, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | sh (unsigned int src, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | srli (unsigned int dest, unsigned int src, uint8_t shamt) __attribute__((unused)) |
static uint32_t | sw (unsigned int src, unsigned int base, uint16_t offset) __attribute__((unused)) |
static uint32_t | vmv_s_x (unsigned int vd, unsigned int vs2) __attribute__((unused)) |
static uint32_t | vmv_x_s (unsigned int rd, unsigned int vs2) __attribute__((unused)) |
static uint32_t | vsetvli (unsigned int dest, unsigned int src, uint16_t imm) __attribute__((unused)) |
static uint32_t | vslide1down_vx (unsigned int vd, unsigned int vs2, unsigned int rs1, unsigned int vm) __attribute__((unused)) |
static uint32_t | wfi (void) __attribute__((unused)) |
static uint32_t | xori (unsigned int dest, unsigned int src, uint16_t imm) __attribute__((unused)) |
|
static |
Definition at line 135 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), and MATCH_ADDI.
Referenced by riscv_program_addi(), and setup_write_memory().
|
static |
Definition at line 304 of file opcodes.h.
References inst_rd(), and MATCH_AUIPC.
Referenced by examine_progbuf().
|
static |
Definition at line 15 of file opcodes.h.
Referenced by armjtagew_tap_append_step(), at91sam9_read_page(), ath79_spi_bitbang_codegen(), buspirate_tap_append(), cmsis_dap_add_tms_sequence(), em357_protect(), ft232r_bit_number_to_name(), imm_b(), imm_j(), jtag_add_statemove(), nrf5_protect_check_bprot(), rsl10_protect(), usbprog_jtag_set_bit(), and vsllink_tap_append_step().
|
static |
|
static |
Definition at line 141 of file opcodes.h.
References csr, imm_i(), inst_rd(), and MATCH_CSRRS.
Referenced by halt(), handle_halt_routine(), read_remote_csr(), register_read(), and register_write_direct().
|
static |
Definition at line 159 of file opcodes.h.
References csr, imm_i(), inst_rd(), inst_rs1(), and MATCH_CSRRCI.
Referenced by riscv_program_csrrci().
|
static |
Definition at line 147 of file opcodes.h.
References csr, imm_i(), inst_rd(), inst_rs1(), and MATCH_CSRRS.
Referenced by riscv_program_csrr().
|
static |
Definition at line 165 of file opcodes.h.
References csr, imm_i(), inst_rd(), inst_rs1(), and MATCH_CSRRSI.
Referenced by riscv_program_csrrsi().
|
static |
Definition at line 153 of file opcodes.h.
References csr, imm_i(), inst_rd(), inst_rs1(), and MATCH_CSRRW.
Referenced by riscv_program_csrw().
|
static |
Definition at line 75 of file opcodes.h.
References csr, imm_i(), inst_rs1(), and MATCH_CSRRSI.
Referenced by halt().
|
static |
Definition at line 129 of file opcodes.h.
References csr, imm_i(), inst_rs1(), MATCH_CSRRW, and source.
Referenced by assert_reset(), execute_resume(), get_register(), register_write(), and write_remote_csr().
|
static |
Definition at line 219 of file opcodes.h.
References MATCH_EBREAK.
Referenced by riscv_add_breakpoint(), and riscv_program_ebreak().
|
static |
Definition at line 224 of file opcodes.h.
References MATCH_C_EBREAK.
Referenced by riscv_add_breakpoint().
|
static |
Definition at line 298 of file opcodes.h.
References MATCH_FENCE.
Referenced by riscv_program_fence().
|
static |
Definition at line 233 of file opcodes.h.
References MATCH_FENCE_I.
Referenced by execute_resume(), and riscv_program_fence_i().
|
static |
Definition at line 189 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), MATCH_FLD, and offset.
Referenced by register_write(), and register_write_direct().
|
static |
Definition at line 183 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), MATCH_FLW, and offset.
Referenced by register_write().
|
static |
Definition at line 213 of file opcodes.h.
References inst_rd(), inst_rs1(), and MATCH_FMV_D_X.
Referenced by register_write_direct().
|
static |
Definition at line 207 of file opcodes.h.
References inst_rd(), inst_rs1(), and MATCH_FMV_W_X.
Referenced by register_write_direct().
|
static |
Definition at line 201 of file opcodes.h.
References inst_rd(), inst_rs1(), and MATCH_FMV_X_D.
Referenced by register_read_direct().
|
static |
Definition at line 195 of file opcodes.h.
References inst_rd(), inst_rs1(), and MATCH_FMV_X_W.
Referenced by register_read_direct().
|
static |
Definition at line 177 of file opcodes.h.
References imm_s(), inst_rs1(), inst_rs2(), MATCH_FSD, and offset.
Referenced by get_register(), and register_read_direct().
|
static |
Definition at line 171 of file opcodes.h.
References imm_s(), inst_rs1(), inst_rs2(), MATCH_FSW, and offset.
Referenced by get_register().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 21 of file opcodes.h.
References bits().
Referenced by addi(), auipc(), csrr(), csrrci(), csrrs(), csrrsi(), csrrw(), fld(), flw(), fmv_d_x(), fmv_w_x(), fmv_x_d(), fmv_x_w(), jal(), lb(), ld(), lh(), lui(), lw(), srli(), vmv_s_x(), vmv_x_s(), vsetvli(), vslide1down_vx(), and xori().
|
static |
Definition at line 27 of file opcodes.h.
References bits().
Referenced by addi(), csrrci(), csrrs(), csrrsi(), csrrw(), csrsi(), csrw(), fld(), flw(), fmv_d_x(), fmv_w_x(), fmv_x_d(), fmv_x_w(), fsd(), fsw(), lb(), ld(), lh(), lw(), sb(), sd(), sh(), srli(), sw(), vmv_s_x(), vsetvli(), vslide1down_vx(), and xori().
|
static |
|
static |
Definition at line 69 of file opcodes.h.
References imm_j(), inst_rd(), and MATCH_JAL.
Referenced by cache_set_jump(), dram_write_jump(), and scans_add_write_jump().
|
static |
Definition at line 123 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), MATCH_LB, and offset.
Referenced by buf_set_buf(), read_memory(), riscv_program_lbr(), and setup_write_memory().
|
static |
Definition at line 105 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), MATCH_LD, and offset.
Referenced by load(), and riscv_program_ldr().
|
static |
Definition at line 117 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), MATCH_LH, and offset.
Referenced by arm_cti_cleanup_all(), arm_tpiu_swo_cleanup_all(), arm_tpiu_swo_poll_trace(), arm_tpiu_swo_service_connection_closed(), breakpoint_add(), COMMAND_HELPER(), cti_instance_by_jim_obj(), dap_check_config(), dap_cleanup_all(), dap_cmd_new(), dap_init_all(), dap_instance_by_jim_obj(), flush_journal(), get_target_with_common_rtos_type(), help_add_command(), help_del_all_commands(), help_del_command(), jim_arm_tpiu_swo_init(), jim_arm_tpiu_swo_names(), jim_dap_names(), jim_target_smp(), jtag_quit(), jtagdp_overrun_check(), read_memory(), riscv_program_lhr(), setup_write_memory(), target_destroy(), telnet_auto_complete(), vdebug_run_jtag_queue(), and vdebug_run_reg_queue().
|
static |
|
static |
Definition at line 111 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), MATCH_LW, and offset.
Referenced by assert_reset(), execute_resume(), load(), read_memory(), riscv_program_lwr(), and setup_write_memory().
|
static |
Definition at line 99 of file opcodes.h.
References imm_s(), inst_rs1(), inst_rs2(), MATCH_SB, and offset.
Referenced by buf_set_buf(), riscv_program_sbr(), and setup_write_memory().
|
static |
Definition at line 87 of file opcodes.h.
References imm_s(), inst_rs1(), inst_rs2(), MATCH_SD, and offset.
Referenced by riscv_program_sdr(), and store().
|
static |
Definition at line 93 of file opcodes.h.
References imm_s(), inst_rs1(), inst_rs2(), MATCH_SH, and offset.
Referenced by riscv_program_shr(), and setup_write_memory().
|
static |
Definition at line 292 of file opcodes.h.
References inst_rd(), inst_rs1(), inst_rs2(), and MATCH_SRLI.
Referenced by examine().
|
static |
Definition at line 81 of file opcodes.h.
References imm_s(), inst_rs1(), inst_rs2(), MATCH_SW, and offset.
Referenced by examine(), examine_progbuf(), halt(), read_memory(), riscv_program_swr(), setup_write_memory(), and store().
|
static |
Definition at line 322 of file opcodes.h.
References inst_rd(), inst_rs1(), and MATCH_VMV_S_X.
|
static |
Definition at line 316 of file opcodes.h.
References inst_rd(), inst_rs2(), and MATCH_VMV_X_S.
Referenced by riscv013_get_register_buf().
|
static |
Definition at line 310 of file opcodes.h.
References bits(), inst_rd(), inst_rs1(), and MATCH_VSETVLI.
Referenced by register_write_direct().
|
static |
Definition at line 329 of file opcodes.h.
References inst_rd(), inst_rs1(), inst_rs2(), and MATCH_VSLIDE1DOWN_VX.
Referenced by riscv013_get_register_buf(), and riscv013_set_register_buf().
|
static |
Definition at line 286 of file opcodes.h.
References imm_i(), inst_rd(), inst_rs1(), and MATCH_XORI.
Referenced by examine().