riscv-openocd/src/target
Antonio Borneo 9659a9b5e2 target/esirisc: free memory at OpenOCD exit
The target esirisc does not free the allocated memory resources,
causing memory leaks at OpenOCD exit.

Add esirisc_free_reg_cache() and esirisc_deinit_target() and use
them to free all the allocated resources.

Change-Id: I17b8ebff54906fa25a37f2d96c01d010a98cffbd
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8094
Tested-by: jenkins
Reviewed-by: Steven Stallion <sstallion@gmail.com>
2024-01-28 14:19:46 +00:00
..
espressif target/espressif: add algorithm support to xtensa chips 2023-12-10 13:31:57 +00:00
openrisc target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
riscv target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
xtensa target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
Makefile.am mips32: add per-cpu quirks feature 2023-08-26 11:44:50 +00:00
a64_disassembler.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
a64_disassembler.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
aarch64.c aarch64: Use 64-bit reads/writes to access SCTLR_EL1 2023-11-18 11:21:38 +00:00
aarch64.h aarch64: Use 64-bit reads/writes to access SCTLR_EL1 2023-11-18 11:21:38 +00:00
adi_v5_dapdirect.c jtag: rewrite jim_jtag_configure() as COMMAND_HANDLER 2024-01-13 14:51:22 +00:00
adi_v5_jtag.c target/arm_adi_v5: fix DP SELECT logic 2023-12-29 14:33:55 +00:00
adi_v5_swd.c jtag: add -ir-bypass option to newtap 2023-12-30 13:08:37 +00:00
algorithm.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
algorithm.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arc.c target/arc: skip over breakpoints in arc_resume() 2024-01-13 14:40:27 +00:00
arc.h target: arc: rewrite command 'arc add-reg' as COMMAND_HANDLER 2023-02-03 22:48:48 +00:00
arc_cmd.c target: arc: rewrite command 'arc add-reg' as COMMAND_HANDLER 2023-02-03 22:48:48 +00:00
arc_cmd.h openocd: src: fix incorrect SPDX tags 2022-07-23 13:16:09 +00:00
arc_jtag.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
arc_jtag.h openocd: src: fix incorrect SPDX tags 2022-07-23 13:16:09 +00:00
arc_mem.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
arc_mem.h openocd: src: fix incorrect SPDX tags 2022-07-23 13:16:09 +00:00
arm.h target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
arm7_9_common.c breakpoints: use 64-bit type for watchpoint mask and value 2023-08-08 06:11:01 +00:00
arm7_9_common.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
arm7tdmi.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
arm7tdmi.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm9tdmi.c target: with pointers, use NULL instead of 0 2023-05-05 22:14:29 +00:00
arm9tdmi.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm11.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
arm11.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm11_dbgtap.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
arm11_dbgtap.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm720t.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
arm720t.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
arm920t.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
arm920t.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
arm926ejs.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
arm926ejs.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
arm946e.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
arm946e.h target: don't export local symbols 2022-09-13 22:13:58 +00:00
arm966e.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
arm966e.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
arm_adi_v5.c target/adiv5: probe MEM-AP supported transfer sizes including large data 2024-01-06 13:56:43 +00:00
arm_adi_v5.h target/adiv5: probe MEM-AP supported transfer sizes including large data 2024-01-06 13:56:43 +00:00
arm_coresight.h arm_adi_v5: replace dap_lookup_cs_component() 2022-05-14 08:55:52 +00:00
arm_cti.c target: cti: rewrite command 'cti names' as COMMAND_HANDLER 2023-03-25 18:12:20 +00:00
arm_cti.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm_dap.c target/arm_adi_v5,arm_dap: introduce pre_connect_init() dap operation 2023-12-29 14:34:50 +00:00
arm_disassembler.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
arm_disassembler.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm_dpm.c arm_opcode: Add support for ARM MCRR/MRRC 2023-10-14 11:55:42 +00:00
arm_dpm.h arm_opcode: Add support for ARM MCRR/MRRC 2023-10-14 11:55:42 +00:00
arm_jtag.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
arm_jtag.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm_opcodes.h arm_opcode: Add support for ARM MCRR/MRRC 2023-10-14 11:55:42 +00:00
arm_semihosting.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
arm_semihosting.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm_simulator.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
arm_simulator.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
arm_tpiu_swo.c target: arm_tpiu_swo: rewrite command 'tpiu init' as COMMAND_HANDLER 2023-03-25 18:14:30 +00:00
arm_tpiu_swo.h armv7m_trace: get rid of the old tpiu code 2021-03-10 21:34:04 +00:00
armv4_5.c target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
armv4_5.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv4_5_cache.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
armv4_5_cache.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv4_5_mmu.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
armv4_5_mmu.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv7a.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
armv7a.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
armv7a_cache.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
armv7a_cache.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv7a_cache_l2x.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
armv7a_cache_l2x.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv7a_mmu.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
armv7a_mmu.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv7m.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
armv7m.h cortex_m: add detection of MVE feature for Armv8.1-M cores 2024-01-13 14:37:50 +00:00
armv7m_trace.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
armv7m_trace.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv8.c target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
armv8.h aarch64: Add support for ARMv8-R 2023-04-30 14:46:25 +00:00
armv8_cache.c target: clarify usage of `coreid` 2023-12-01 22:23:13 +00:00
armv8_cache.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
armv8_dpm.c armv8_dpm: fix registers read at debug entry 2023-10-07 14:39:12 +00:00
armv8_dpm.h openocd: src: replace the incomplete GPL-2.0-or-later license tag 2022-07-23 13:15:24 +00:00
armv8_opcodes.c target/aarch64: add AArch64 mdd and mwd support 2023-09-17 12:07:17 +00:00
armv8_opcodes.h target/aarch64: add AArch64 mdd and mwd support 2023-09-17 12:07:17 +00:00
avr32_ap7k.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
avr32_ap7k.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
avr32_jtag.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
avr32_jtag.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
avr32_mem.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
avr32_mem.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
avr32_regs.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
avr32_regs.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
avrt.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
avrt.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
breakpoints.c breakpoints: Add target logging to breakpoints and watchpoints 2023-11-18 11:20:11 +00:00
breakpoints.h breakpoints: add rwp all command 2023-10-14 12:01:38 +00:00
cortex_a.c target: clarify usage of `coreid` 2023-12-01 22:23:13 +00:00
cortex_a.h target: move parent target structs just after common_magic 2022-08-14 12:10:14 +00:00
cortex_m.c cortex_m: add detection of MVE feature for Armv8.1-M cores 2024-01-13 14:37:50 +00:00
cortex_m.h target/cortex_m: Add Cortex-M85 part 2023-12-30 13:11:47 +00:00
dsp563xx.c jtag: Rename 'hasidcode' to 'has_idcode' 2023-12-16 07:51:56 +00:00
dsp563xx.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
dsp563xx_once.c target: with pointers, use NULL instead of 0 2023-05-05 22:14:29 +00:00
dsp563xx_once.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
dsp5680xx.c dsp5680xx: fix clang error core.UndefinedBinaryOperatorResult 2022-11-11 20:11:22 +00:00
dsp5680xx.h target: don't export local symbols 2022-09-13 22:13:58 +00:00
embeddedice.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
embeddedice.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
esirisc.c target/esirisc: free memory at OpenOCD exit 2024-01-28 14:19:46 +00:00
esirisc.h target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
esirisc_jtag.c esirisc_jtag: fix clang error core.VLASize 2022-11-11 20:11:03 +00:00
esirisc_jtag.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
esirisc_regs.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
esirisc_trace.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
esirisc_trace.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
etb.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
etb.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
etm.c target: use boolean values for 'valid' and 'dirty' flags 2023-11-18 11:16:06 +00:00
etm.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
etm_dummy.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
etm_dummy.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
fa526.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
feroceon.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
hla_target.c target: fix messages and return values of failed op because not halted 2023-07-29 05:17:44 +00:00
image.c break from long loops on shutdown request 2023-12-24 14:24:38 +00:00
image.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
lakemont.c target: use 'ULL' suffix for long constants 2023-05-05 22:10:18 +00:00
lakemont.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
ls1_sap.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
mem_ap.c target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
mips32.c target/mips32: fix false positive from clang 2024-01-13 14:45:56 +00:00
mips32.h target/mips32: optimize pracc access 2024-01-06 13:52:02 +00:00
mips32_dmaacc.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
mips32_dmaacc.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
mips32_pracc.c target/mips32: optimize pracc access 2024-01-06 13:52:02 +00:00
mips32_pracc.h target/mips32: optimize pracc access 2024-01-06 13:52:02 +00:00
mips64.c target: use boolean values for 'valid' and 'dirty' flags 2023-11-18 11:16:06 +00:00
mips64.h target: use unsigned int for timeout_ms 2023-05-27 06:41:17 +00:00
mips64_pracc.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
mips64_pracc.h target: use 'ULL' suffix for long constants 2023-05-05 22:10:18 +00:00
mips_cpu.h LICENSES: drop SPDX tag 'GPL-2.0' and use 'GPL-2.0-only' 2024-01-13 14:41:21 +00:00
mips_ejtag.c target/mips32: add mips ejtag command 2024-01-06 13:51:44 +00:00
mips_ejtag.h target/mips32: optimize pracc access 2024-01-06 13:52:02 +00:00
mips_m4k.c target: clarify usage of `coreid` 2023-12-01 22:23:13 +00:00
mips_m4k.h target: don't export local symbols 2022-09-13 22:13:58 +00:00
mips_mips64.c target: use boolean values for 'valid' and 'dirty' flags 2023-11-18 11:16:06 +00:00
mips_mips64.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
quark_d20xx.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
quark_x10xx.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
register.c register: refactor register_cache_invalidate() 2023-08-03 20:24:16 +00:00
register.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
rtt.c target: rtt: include rtt.h 2023-05-05 22:14:11 +00:00
rtt.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
semihosting_common.c semihosting: fix handling of errno 2023-07-01 17:58:52 +00:00
semihosting_common.h semihosting: improve semihosting opcode debug messages 2023-07-01 15:03:30 +00:00
smp.c target: clarify usage of `coreid` 2023-12-01 22:23:13 +00:00
smp.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
startup.tcl target: drop deprecated code for mem2array and array2mem 2024-01-13 14:42:16 +00:00
stm8.c target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
stm8.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
target.c target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
target.h target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
target_request.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
target_request.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
target_type.h target: get_gdb_arch() accepts target via const pointer 2024-01-28 14:18:54 +00:00
testee.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
trace.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
trace.h openocd: src/target: replace the GPL-2.0-or-later license tag 2022-07-23 13:58:51 +00:00
x86_32_common.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
x86_32_common.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00
xscale.c breakpoints: use 64-bit type for watchpoint mask and value 2023-08-08 06:11:01 +00:00
xscale.h target: consolidate existing target/algo common_magic 2022-08-14 12:02:38 +00:00