nds32: always polling after gdb attached
Do not turn on/off polling as leave/enter debug mode. Enable polling after gdb attached, and disable polling after gdb detached. Change-Id: Id64459b86f44937af7ea5ccfe2cd13e31732eecf Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com> Reviewed-on: http://openocd.zylin.com/1574 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
9288a59aa1
commit
54d8a801b2
@@ -254,12 +254,8 @@ static int nds32_v3_deassert_reset(struct target *target)
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
/* call target_poll() to avoid "Halt timed out" */
|
||||
CHECK_RETVAL(target_poll(target));
|
||||
} else {
|
||||
/* reset-halt */
|
||||
jtag_poll_set_enabled(false);
|
||||
|
||||
struct nds32_v3_common *nds32_v3 = target_to_nds32_v3(target);
|
||||
struct nds32 *nds32 = &(nds32_v3->nds32);
|
||||
uint32_t value;
|
||||
|
||||
Reference in New Issue
Block a user