]> git.sur5r.net Git - openocd/commit
ETM: simplify ETM initialization code paths
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 14 Nov 2009 00:26:39 +0000 (16:26 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 14 Nov 2009 00:26:39 +0000 (16:26 -0800)
commit78c6b922e21849ed8a2d3af4ca55c84c3d1ac185
tree054b5f97f2b849e3aef93b51681d200cb94f75aa
parenta7f5cdf999cd3fb8d3a681bcb6d8f8880faf8a11
ETM: simplify ETM initialization code paths

Return NULL from etm_build_reg_cache() not ERROR_OK; and share
code on that fault path.

Let ETM code handle any tracking of its cache -- not callers.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm7tdmi.c
src/target/arm9tdmi.c
src/target/etm.c