target/esp_xtensa_smp: don't use coreid as an SMP index
For the sake of https://review.openocd.org/c/openocd/+/7957 Instead of "coreid", 'target smp' command call order used as an index Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Change-Id: Iab86b81868d37c0bf8663707ee11367c41f6b96d Reviewed-on: https://review.openocd.org/c/openocd/+/8162 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
56a7925a1d
commit
271c4e5253
|
@ -94,8 +94,11 @@ int esp_xtensa_smp_soft_reset_halt(struct target *target)
|
|||
LOG_TARGET_DEBUG(target, "begin");
|
||||
/* in SMP mode we need to ensure that at first we reset SOC on PRO-CPU
|
||||
and then call xtensa_assert_reset() for all cores */
|
||||
if (target->smp && target->coreid != 0)
|
||||
return ERROR_OK;
|
||||
if (target->smp) {
|
||||
head = list_first_entry(target->smp_targets, struct target_list, lh);
|
||||
if (head->target != target)
|
||||
return ERROR_OK;
|
||||
}
|
||||
/* Reset the SoC first */
|
||||
if (esp_xtensa_smp->chip_ops->reset) {
|
||||
res = esp_xtensa_smp->chip_ops->reset(target);
|
||||
|
|
Loading…
Reference in New Issue