From: Øyvind H. <go...@us...> - 2009-12-20 19:24:33
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 0df5d1eb3c3a640c34de52787c4a70c07b53535f (commit) from b72bfabf0dc697e6445c4ed3dba632b164a006e1 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 0df5d1eb3c3a640c34de52787c4a70c07b53535f Author: Antonio Borneo <bor...@gm...> Date: Mon Dec 21 01:30:18 2009 +0800 arm7_9: Support VINITHI signal Command "reset halt" checks if PC properly resets, issueing warning: "PC was not 0. Does this target need srst_pulls_trst?". Checking PC against 0 is not always correct. Removed PC value check, as suggested by Ãyvind Harboe. Signed-off-by: Antonio Borneo <bor...@gm...> Signed-off-by: U-PROPRIET-28D9DF\PROPRIETAIRE <PROPRIETAIRE@propriet-28d9df.(none)> diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 280704e..e596980 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -889,34 +889,11 @@ int arm7_9_poll(struct target *target) } if ((target->state == TARGET_RUNNING) || (target->state == TARGET_RESET)) { - int check_pc = 0; - if (target->state == TARGET_RESET) - { - if (target->reset_halt) - { - enum reset_types jtag_reset_config = jtag_get_reset_config(); - if ((jtag_reset_config & RESET_SRST_PULLS_TRST) == 0) - { - check_pc = 1; - } - } - } - target->state = TARGET_HALTED; if ((retval = arm7_9_debug_entry(target)) != ERROR_OK) return retval; - if (check_pc) - { - struct reg *reg = register_get_by_name(target->reg_cache, "pc", 1); - uint32_t t=*((uint32_t *)reg->value); - if (t != 0) - { - LOG_ERROR("PC was not 0. Does this target need srst_pulls_trst?"); - } - } - if (arm_semihosting(target, &retval) != 0) return retval; ----------------------------------------------------------------------- Summary of changes: src/target/arm7_9_common.c | 23 ----------------------- 1 files changed, 0 insertions(+), 23 deletions(-) hooks/post-receive -- Main OpenOCD repository |