OpenOCD
|
Go to the source code of this file.
Variables | |
static const struct command_registration | mips64_commands_handlers [] |
struct target_type | mips_mips64_target |
COMMAND_HANDLER | ( | handle_mips64mode32 | ) |
Definition at line 1123 of file mips_mips64.c.
References target::arch_info, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_BOOL, command_print(), ERROR_OK, get_current_target(), and mips64_common::mips64mode32.
|
static |
Definition at line 29 of file mips_mips64.c.
References addr.
Referenced by mips_mips64_add_breakpoint(), mips_mips64_read_memory(), mips_mips64_resume(), mips_mips64_step(), and mips_mips64_write_memory().
|
static |
Definition at line 309 of file mips_mips64.c.
References breakpoint::address, ERROR_FAIL, ERROR_OK, breakpoint::length, LOG_ERROR, MIPS16_SDBBP, breakpoint::orig_instr, target_read_memory(), target_read_u16(), and target_write_u16().
Referenced by mips_mips64_set_breakpoint().
|
static |
Definition at line 539 of file mips_mips64.c.
References breakpoint::address, ERROR_OK, breakpoint::length, MIPS16_SDBBP, MIPS16_SDBBP_SIZE, breakpoint::orig_instr, target_buffer_get_u16(), target_read_memory(), and target_write_memory().
Referenced by mips_mips64_unset_breakpoint().
|
static |
Definition at line 779 of file mips_mips64.c.
References breakpoint::address, target::arch_info, BKPT_HARD, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, LOG_INFO, mips64_extend_sign(), mips64_common::mips64mode32, mips_mips64_set_breakpoint(), mips64_common::num_inst_bpoints_avail, and breakpoint::type.
|
static |
Definition at line 845 of file mips_mips64.c.
References target::arch_info, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, LOG_INFO, mips_mips64_set_watchpoint(), and mips64_common::num_data_bpoints_avail.
|
static |
Definition at line 154 of file mips_mips64.c.
References target::arch_info, mips64_common::ejtag_info, EJTAG_INST_EJTAGBOOT, EJTAG_INST_NORMALBOOT, ERROR_FAIL, ERROR_OK, jtag_add_reset(), jtag_add_sleep(), jtag_get_reset_config(), jtag_reset_config, LOG_DEBUG, LOG_ERROR, mips64_invalidate_core_regs(), mips_ejtag_set_instr(), target::reset_halt, RESET_HAS_SRST, RESET_SRST_PULLS_TRST, target::state, target_halt(), TARGET_RESET, and target_state_name().
|
static |
Definition at line 943 of file mips_mips64.c.
References working_area::address, target::arch_info, buffer, count, mips64_common::ejtag_info, ERROR_FAIL, ERROR_OK, ERROR_TARGET_UNALIGNED_ACCESS, mips_ejtag::fast_access_save, mips64_common::fast_data_area, working_area::free, LOG_DEBUG, LOG_ERROR, MIPS64_FASTDATA_HANDLER_SIZE, mips64_pracc_fastdata_xfer(), working_area::size, TARGET_ADDR_FMT, target_alloc_working_area(), and target_buffer_get_u64_array().
Referenced by mips_mips64_write_memory().
|
static |
Definition at line 1117 of file mips_mips64.c.
References ERROR_FAIL.
|
static |
Definition at line 197 of file mips_mips64.c.
References ERROR_OK, jtag_add_reset(), LOG_DEBUG, and target_state_name().
|
static |
Definition at line 47 of file mips_mips64.c.
References target::arch_info, buf_get_u64(), mips64_common::core_cache, mips64_common::ejtag_info, ERROR_OK, LOG_DEBUG, mips64_configure_break_unit(), mips64_ejtag_config_step(), MIPS64_PC, mips64_save_context(), mips_mips64_examine_debug_reason(), reg_cache::reg_list, target_state_name(), and reg::value.
Referenced by mips_mips64_poll(), mips_mips64_single_step_core(), and mips_mips64_step().
|
static |
Definition at line 375 of file mips_mips64.c.
References target::breakpoints, ERROR_OK, breakpoint::is_set, mips_mips64_set_breakpoint(), and breakpoint::next.
Referenced by mips_mips64_resume().
|
static |
Definition at line 481 of file mips_mips64.c.
References ERROR_OK, watchpoint::is_set, mips_mips64_set_watchpoint(), watchpoint::next, and target::watchpoints.
Referenced by mips_mips64_resume().
|
static |
Definition at line 1105 of file mips_mips64.c.
References target::arch_info, mips64_common::ejtag_info, ERROR_OK, mips64_examine(), and mips_ejtag_init().
|
static |
Definition at line 38 of file mips_mips64.c.
References DBG_REASON_BREAKPOINT, DBG_REASON_DBGRQ, DBG_REASON_SINGLESTEP, target::debug_reason, and ERROR_OK.
Referenced by mips_mips64_debug_entry().
|
static |
Definition at line 116 of file mips_mips64.c.
References target::arch_info, DBG_REASON_DBGRQ, target::debug_reason, mips64_common::ejtag_info, ERROR_OK, ERROR_TARGET_FAILURE, jtag_get_reset_config(), jtag_get_srst(), LOG_DEBUG, LOG_ERROR, LOG_WARNING, mips_ejtag_enter_debug(), RESET_SRST_PULLS_TRST, target::state, TARGET_HALTED, TARGET_RESET, target_state_name(), and TARGET_UNKNOWN.
|
static |
Definition at line 1079 of file mips_mips64.c.
References mips64_build_reg_cache().
|
static |
Definition at line 70 of file mips_mips64.c.
References target::arch_info, mips_ejtag::ejtag_ctrl, EJTAG_CTRL_BRKST, EJTAG_CTRL_ROCC, mips64_common::ejtag_info, EJTAG_INST_CONTROL, ERROR_OK, LOG_DEBUG, mips_ejtag_drscan_32(), mips_ejtag_set_instr(), mips_mips64_debug_entry(), target::state, target_call_event_callbacks(), TARGET_DEBUG_RUNNING, TARGET_EVENT_DEBUG_HALTED, TARGET_EVENT_HALTED, TARGET_HALTED, TARGET_RESET, and TARGET_RUNNING.
|
static |
Definition at line 880 of file mips_mips64.c.
References target::arch_info, buffer, count, mips64_common::ejtag_info, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_FAIL, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_UNALIGNED_ACCESS, LOG_DEBUG, LOG_ERROR, LOG_TARGET_ERROR, mips64_extend_sign(), mips64_pracc_read_mem(), mips64_common::mips64mode32, size, target::state, target_buffer_set_u16_array(), target_buffer_set_u32_array(), target_buffer_set_u64_array(), and TARGET_HALTED.
|
static |
Definition at line 799 of file mips_mips64.c.
References target::arch_info, BKPT_HARD, ERROR_OK, ERROR_TARGET_NOT_HALTED, breakpoint::is_set, LOG_TARGET_ERROR, mips_mips64_unset_breakpoint(), mips64_common::num_inst_bpoints_avail, target::state, TARGET_HALTED, and breakpoint::type.
|
static |
Definition at line 860 of file mips_mips64.c.
References target::arch_info, ERROR_OK, ERROR_TARGET_NOT_HALTED, watchpoint::is_set, LOG_TARGET_ERROR, mips_mips64_unset_watchpoint(), mips64_common::num_data_bpoints_avail, target::state, and TARGET_HALTED.
|
static |
Definition at line 595 of file mips_mips64.c.
References breakpoint::address, target::arch_info, breakpoint_find(), buf_get_u64(), buf_set_u64(), mips64_common::core_cache, DBG_REASON_NOTHALTED, target::debug_reason, reg::dirty, mips64_common::ejtag_info, ERROR_OK, ERROR_TARGET_NOT_HALTED, LOG_DEBUG, LOG_TARGET_ERROR, mips64_ejtag_exit_debug(), mips64_enable_interrupts(), mips64_extend_sign(), mips64_invalidate_core_regs(), MIPS64_PC, mips64_restore_context(), mips64_common::mips64mode32, mips_mips64_enable_breakpoints(), mips_mips64_enable_watchpoints(), mips_mips64_set_breakpoint(), mips_mips64_single_step_core(), mips_mips64_unset_breakpoint(), reg_cache::reg_list, target::state, target_call_event_callbacks(), TARGET_DEBUG_RUNNING, TARGET_EVENT_DEBUG_RESUMED, TARGET_EVENT_RESUMED, target_free_all_working_areas(), TARGET_HALTED, TARGET_RUNNING, reg::valid, and reg::value.
|
static |
Definition at line 338 of file mips_mips64.c.
References BKPT_HARD, ERROR_FAIL, ERROR_OK, breakpoint::is_set, breakpoint::length, LOG_DEBUG, LOG_ERROR, LOG_WARNING, MIPS16_SDBBP_SIZE, MIPS64_SDBBP_SIZE, mips_mips16_set_sdbbp(), mips_mips64_set_hwbp(), mips_mips64_set_sdbbp(), breakpoint::type, and breakpoint::unique_id.
Referenced by mips_mips64_add_breakpoint(), mips_mips64_enable_breakpoints(), mips_mips64_resume(), and mips_mips64_step().
|
static |
Definition at line 233 of file mips_mips64.c.
References breakpoint::address, target::arch_info, mips64_comparator::bp_value, ERROR_OK, mips64_common::inst_break_list, LOG_DEBUG, LOG_WARNING, mips64_common::num_inst_bpoints, mips64_comparator::reg_address, target_write_u64(), breakpoint::unique_id, and mips64_comparator::used.
Referenced by mips_mips64_set_breakpoint().
|
static |
Definition at line 279 of file mips_mips64.c.
References breakpoint::address, ERROR_FAIL, ERROR_OK, breakpoint::length, LOG_ERROR, MIPS64_SDBBP, breakpoint::orig_instr, target_read_memory(), target_read_u32(), and target_write_u32().
Referenced by mips_mips64_set_breakpoint().
|
static |
Definition at line 394 of file mips_mips64.c.
References watchpoint::address, target::arch_info, mips64_comparator::bp_value, mips64_common::data_break_list, EJTAG_DBCN_BE, EJTAG_DBCN_BLM_SHIFT, EJTAG_DBCN_NOLB, EJTAG_DBCN_NOSB, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, ERROR_TARGET_UNALIGNED_ACCESS, watchpoint::is_set, watchpoint::length, LOG_DEBUG, LOG_ERROR, LOG_WARNING, mips64_common::num_data_bpoints, mips64_comparator::reg_address, watchpoint::rw, target_write_u64(), mips64_comparator::used, watchpoint_set(), WPT_ACCESS, WPT_READ, and WPT_WRITE.
Referenced by mips_mips64_add_watchpoint(), and mips_mips64_enable_watchpoints().
|
static |
Definition at line 208 of file mips_mips64.c.
References target::arch_info, mips64_common::ejtag_info, ERROR_OK, mips64_ejtag_config_step(), mips64_ejtag_exit_debug(), mips64_enable_interrupts(), and mips_mips64_debug_entry().
Referenced by mips_mips64_resume().
|
static |
Definition at line 699 of file mips_mips64.c.
References breakpoint::address, target::arch_info, breakpoint_find(), buf_get_u64(), buf_set_u64(), mips64_common::core_cache, DBG_REASON_SINGLESTEP, target::debug_reason, reg::dirty, mips64_common::ejtag_info, ERROR_OK, ERROR_TARGET_NOT_HALTED, LOG_DEBUG, LOG_TARGET_ERROR, mips64_ejtag_config_step(), mips64_ejtag_exit_debug(), mips64_enable_interrupts(), mips64_extend_sign(), mips64_invalidate_core_regs(), MIPS64_PC, mips64_restore_context(), mips64_common::mips64mode32, mips_mips64_debug_entry(), mips_mips64_set_breakpoint(), mips_mips64_unset_breakpoint(), NULL, reg_cache::reg_list, target::state, target_call_event_callbacks(), TARGET_EVENT_HALTED, TARGET_EVENT_RESUMED, TARGET_HALTED, reg::valid, and reg::value.
|
static |
Definition at line 1085 of file mips_mips64.c.
References mips64_common::arch_info, target::arch_info, mips_mips64_common::common_magic, ERROR_FAIL, LOG_ERROR, mips_mips64_common::mips64_common, MIPS64_COMMON_MAGIC, mips64_init_arch_info(), and target::tap.
|
static |
Definition at line 558 of file mips_mips64.c.
References BKPT_HARD, ERROR_FAIL, ERROR_OK, breakpoint::is_set, breakpoint::length, LOG_DEBUG, LOG_ERROR, LOG_WARNING, MIPS16_SDBBP_SIZE, MIPS64_SDBBP_SIZE, mips_mips16_unset_sdbbp(), mips_mips64_unset_hwbp(), mips_mips64_unset_sdbbp(), breakpoint::type, and breakpoint::unique_id.
Referenced by mips_mips64_remove_breakpoint(), mips_mips64_resume(), and mips_mips64_step().
|
static |
Definition at line 499 of file mips_mips64.c.
References target::arch_info, mips64_comparator::bp_value, ERROR_OK, mips64_common::inst_break_list, LOG_DEBUG, mips64_common::num_inst_bpoints, breakpoint::number, mips64_comparator::reg_address, target_write_u64(), breakpoint::unique_id, and mips64_comparator::used.
Referenced by mips_mips64_unset_breakpoint().
|
static |
Definition at line 520 of file mips_mips64.c.
References breakpoint::address, ERROR_OK, MIPS64_SDBBP, MIPS64_SDBBP_SIZE, breakpoint::orig_instr, target_buffer_get_u32(), target_read_memory(), and target_write_memory().
Referenced by mips_mips64_unset_breakpoint().
|
static |
Definition at line 820 of file mips_mips64.c.
References target::arch_info, mips64_comparator::bp_value, mips64_common::data_break_list, ERROR_OK, watchpoint::is_set, LOG_DEBUG, LOG_WARNING, mips64_common::num_data_bpoints, watchpoint::number, mips64_comparator::reg_address, target_write_u64(), and mips64_comparator::used.
Referenced by mips_mips64_remove_watchpoint().
|
static |
Definition at line 1009 of file mips_mips64.c.
References target::arch_info, buffer, count, mips64_common::ejtag_info, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_FAIL, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_UNALIGNED_ACCESS, LOG_DEBUG, LOG_ERROR, LOG_TARGET_ERROR, LOG_WARNING, mips64_extend_sign(), mips64_pracc_write_mem(), mips64_common::mips64mode32, mips_mips64_bulk_write_memory(), NULL, size, target::state, target_buffer_get_u16_array(), target_buffer_get_u32_array(), target_buffer_get_u64_array(), and TARGET_HALTED.
|
static |
Definition at line 1123 of file mips_mips64.c.
struct target_type mips_mips64_target |
Definition at line 1123 of file mips_mips64.c.