Re: [Openocd-development] [PATCH 6/6] cortex_a9: move dap_ap_select to arm_avi_v5

2011-02-12 Thread Tomek CEDRO
Hello Luca! On Sat, Feb 12, 2011 at 12:54 PM, Luca Ellero wrote: > dap_ap_select was used in the code at various points, but that can lead to > confusion, without any knowledge of what AP is really selected at some > points. (...) This is also somehow related with the TRANSPORT and DP system tha

[Openocd-development] [PATCH 6/6] cortex_a9: move dap_ap_select to arm_avi_v5

2011-02-12 Thread Luca Ellero
dap_ap_select was used in the code at various points, but that can lead to confusion, without any knowledge of what AP is really selected at some points. Some bugs derive from this (for example md/mw doesn't work well after issueing "dap apsel" command). Moving it to arm_adi_v5.c (using mem_ap_sel

[Openocd-development] [PATCH 5/6] arm_adi_v5: add wrapping transfer functions with selection of ap

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero --- src/target/arm_adi_v5.c | 74 +++ src/target/arm_adi_v5.h |2 +- 2 files changed, 75 insertions(+), 1 deletions(-) diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 2695c46..4a3cfbb 100644 --- a/s

[Openocd-development] [PATCH 4/6] arm_adi_v5: add transfer functions prototypes with selection of ap

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero --- src/target/arm_adi_v5.h | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h index f64f7c8..2aefd60 100644 --- a/src/target/arm_adi_v5.h +++ b/src/target/arm_adi_v5.

[Openocd-development] [PATCH 1/6] cortex_a9: trivial fixes

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero --- src/target/cortex_a9.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/target/cortex_a9.c b/src/target/cortex_a9.c index e411335..c13d41c 100644 --- a/src/target/cortex_a9.c +++ b/src/target/cortex_a9.c @@ -1498,8 +1498,9 @@

[Openocd-development] [PATCH 3/6] cortex_a9: check if MMU is enabled on APB read/write memory

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero --- src/target/cortex_a9.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/target/cortex_a9.c b/src/target/cortex_a9.c index 3ad7a7d..422da3f 100644 --- a/src/target/cortex_a9.c +++ b/src/target/cortex_a9.c @@ -1521,6 +

[Openocd-development] [PATCH 2/6] cortex_a9: check target halted on APB read/write memory

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero --- src/target/cortex_a9.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/target/cortex_a9.c b/src/target/cortex_a9.c index c13d41c..3ad7a7d 100644 --- a/src/target/cortex_a9.c +++ b/src/target/cortex_a9.c @@ -1522,6 +1522,12 @@