ADIv5 share DAP command support

Get rid of needless and undesirable code duplication for
all the DAP commands (resolving a FIXME) ... there's no
need for coreas to have private copies of that stuff.
Stick a pointer to the DAP in "struct arm", letting common
code get to it.

Also rename the "swjdp_info" symbol; just call it "dap".

This is an overall code shrink.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
David Brownell
2010-03-05 10:39:25 -08:00
parent 57ebf6d3de
commit d33a81c549
9 changed files with 174 additions and 335 deletions

View File

@@ -50,8 +50,7 @@ struct armv7a_common
int common_magic;
struct reg_cache *core_cache;
/* arm adp debug port */
struct adiv5_dap swjdp_info;
struct adiv5_dap dap;
/* Core Debug Unit */
struct arm_dpm dpm;