OpenOCD
|
Holds utilities to work with register caches. More...
Go to the source code of this file.
Functions | |
void | register_cache_invalidate (struct reg_cache *cache) |
Marks the contents of the register cache as invalid (and clean). More... | |
struct reg * | register_get_by_name (struct reg_cache *first, const char *name, bool search_all) |
struct reg * | register_get_by_number (struct reg_cache *first, uint32_t reg_num, bool search_all) |
static int | register_get_dummy_core_reg (struct reg *reg) |
struct reg_cache ** | register_get_last_cache_p (struct reg_cache **first) |
void | register_init_dummy (struct reg *reg) |
static int | register_set_dummy_core_reg (struct reg *reg, uint8_t *buf) |
void | register_unlink_cache (struct reg_cache **cache_p, const struct reg_cache *cache) |
Variables | |
static const struct reg_arch_type | dummy_type |
Holds utilities to work with register caches.
OpenOCD uses machine registers internally, and exposes them by name to Tcl scripts. Sets of related registers are grouped into caches. For example, a CPU core will expose a set of registers, and there may be separate registers associated with debug or trace modules.
Definition in file register.c.
void register_cache_invalidate | ( | struct reg_cache * | cache | ) |
Marks the contents of the register cache as invalid (and clean).
Definition at line 94 of file register.c.
References reg::dirty, reg::exist, reg_cache::num_regs, reg_cache::reg_list, and reg::valid.
Referenced by aarch64_assert_reset(), aarch64_poll(), aarch64_restore_context(), adapter_resume(), adapter_step(), arc_assert_reset(), arc_resume(), arc_step(), arm11_assert_reset(), arm11_debug_entry(), arm11_leave_debug_state(), arm7_9_assert_reset(), arm7_9_resume(), arm7_9_soft_reset_halt(), arm7_9_step(), avr32_ap7k_resume(), cortex_a_assert_reset(), cortex_a_internal_restart(), cortex_a_internal_restore(), cortex_m_assert_reset(), cortex_m_endreset_event(), cortex_m_poll_one(), cortex_m_restart_one(), cortex_m_soft_reset_halt(), cortex_m_step(), dsp563xx_assert_reset(), dsp563xx_resume(), dsp563xx_step_ex(), esirisc_assert_reset(), esirisc_resume_or_step(), execute_resume(), hl_assert_reset(), mips_m4k_assert_reset(), mips_m4k_internal_restore(), mips_m4k_step(), or1k_resume_or_step(), resume_finish(), riscv_invalidate_register_cache(), riscv_openocd_step(), stm8_reset_assert(), stm8_resume(), stm8_step(), xscale_deassert_reset(), xscale_resume(), xscale_step_inner(), and xtensa_assert_reset().
Definition at line 50 of file register.c.
References reg::exist, name, reg::name, reg_cache::next, NULL, reg_cache::num_regs, and reg_cache::reg_list.
Referenced by armv4_5_run_algorithm_inner(), armv7m_start_algorithm(), armv7m_wait_algorithm(), COMMAND_HANDLER(), dsp563xx_run_algorithm(), mips32_run_algorithm(), riscv_run_algorithm(), stm8_run_algorithm(), target_jim_get_reg(), target_profiling_default(), xtensa_start_algorithm(), and xtensa_wait_algorithm().
Definition at line 28 of file register.c.
References reg::exist, reg_cache::next, NULL, reg_cache::num_regs, reg::number, and reg_cache::reg_list.
Referenced by hwthread_get_thread_reg(), and hwthread_set_reg().
|
static |
Definition at line 105 of file register.c.
References ERROR_OK.
Definition at line 72 of file register.c.
Referenced by arc_build_bcr_reg_cache(), arc_build_reg_cache(), arm11_examine(), arm7_9_examine(), arm7tdmi_build_reg_cache(), arm9tdmi_build_reg_cache(), arm_dpm_setup(), armv7m_build_reg_cache(), armv8_build_reg_cache(), avr32_build_reg_cache(), cortex_m_dwt_setup(), dsp563xx_build_reg_cache(), esirisc_build_reg_cache(), lakemont_build_reg_cache(), mips32_build_reg_cache(), mips64_build_reg_cache(), or1k_build_reg_cache(), stm8_build_reg_cache(), xscale_build_reg_cache(), and xtensa_build_reg_cache().
void register_init_dummy | ( | struct reg * | reg | ) |
Definition at line 123 of file register.c.
References dummy_type, and reg::type.
|
static |
Definition at line 110 of file register.c.
Definition at line 85 of file register.c.
References reg_cache::next.
Referenced by cortex_m_dwt_free(), and xtensa_free_reg_cache().
|
static |
Definition at line 110 of file register.c.
Referenced by register_init_dummy().