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
@@ -2161,8 +2161,6 @@ int nds32_assert_reset(struct target *target)
|
||||
struct aice_port_s *aice = target_to_aice(target);
|
||||
struct nds32_cpu_version *cpu_version = &(nds32->cpu_version);
|
||||
|
||||
jtag_poll_set_enabled(true);
|
||||
|
||||
if (target->reset_halt) {
|
||||
if ((nds32->soft_reset_halt)
|
||||
|| (nds32->edm.version < 0x51)
|
||||
@@ -2205,7 +2203,9 @@ static int nds32_gdb_attach(struct nds32 *nds32)
|
||||
}
|
||||
|
||||
target_halt(nds32->target);
|
||||
target_poll(nds32->target);
|
||||
|
||||
/* turn on polling */
|
||||
jtag_poll_set_enabled(true);
|
||||
|
||||
gdb_attached = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user