Files
sw_openocd/src/target
Antonio Borneo df1dcc27ee target/xscale: fix memory leak of register cache
There is no method to free the register cache, allocated in
xscale_build_reg_cache(), so we get a memory leak.
Issue identified by tracking all calls to arm_build_reg_cache().

Implement the method xscale_deinit_target() that in turn calls the
new xscale_free_reg_cache().
Fix leak of struct xscale.

NOT TESTED on a real xscale target.
Tested on a arm926ejs (SPEAr320) by hacking the target type and
pretending it is a xscale:
	sed -i s/arm926ejs/xscale/ tcl/target/spear3xx.cfg

Change-Id: Ibb2104c42411b76f4bb77c2fa387d1b85a3d2d5d
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5695
Tested-by: jenkins
2020-07-26 20:12:34 +01:00
..
2018-01-16 09:05:41 +00:00
2016-05-24 22:30:55 +01:00
2020-07-08 22:07:38 +01:00
2020-01-14 11:40:36 +00:00
2018-04-10 09:13:02 +01:00
2020-07-08 22:07:38 +01:00
2020-07-08 22:07:38 +01:00
2020-03-12 10:11:19 +00:00
2020-04-21 12:55:41 +01:00
2020-07-08 22:08:08 +01:00
2016-05-24 22:30:55 +01:00
2020-07-08 22:08:08 +01:00
2018-12-12 08:47:44 +00:00
2018-12-12 08:47:44 +00:00
2018-12-12 08:47:44 +00:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:55 +01:00
2020-01-14 11:37:34 +00:00
2020-04-21 12:55:41 +01:00
2020-06-06 18:05:08 +01:00
2019-03-23 17:43:30 +00:00
2020-07-08 22:08:08 +01:00
2020-04-21 12:55:41 +01:00
2019-11-28 16:59:15 +00:00
2020-07-08 22:08:08 +01:00
2019-11-28 16:59:15 +00:00
2020-04-21 12:55:41 +01:00
2017-05-08 18:04:56 +01:00
2020-04-21 12:55:41 +01:00
2020-07-08 22:08:08 +01:00
2020-02-15 15:36:56 +00:00
2020-03-12 09:43:55 +00:00
2020-07-08 22:08:08 +01:00
2020-07-08 22:08:08 +01:00
2020-05-24 21:36:43 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:55 +01:00