target: clarify usage of coreid
By definition in `target/target.h`, `coreid` is not a unique identifier of a target -- it can be the same for targets on different TAPs. Change-Id: Ifce78da55fffe28dd8b6b06ecae7d8c4e305c0a2 Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7997 Tested-by: jenkins Reviewed-by: Marek Vrbka <marek.vrbka@codasip.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
15038ab51a
commit
73d62f3f0c
@@ -142,7 +142,7 @@ static int mips_m4k_halt_smp(struct target *target)
|
||||
ret = mips_m4k_halt(curr);
|
||||
|
||||
if (ret != ERROR_OK) {
|
||||
LOG_ERROR("halt failed target->coreid: %" PRId32, curr->coreid);
|
||||
LOG_TARGET_ERROR(curr, "halt failed.");
|
||||
retval = ret;
|
||||
}
|
||||
}
|
||||
@@ -412,8 +412,8 @@ static int mips_m4k_restore_smp(struct target *target, uint32_t address, int han
|
||||
handle_breakpoints, 0);
|
||||
|
||||
if (ret != ERROR_OK) {
|
||||
LOG_ERROR("target->coreid :%" PRId32 " failed to resume at address :0x%" PRIx32,
|
||||
curr->coreid, address);
|
||||
LOG_TARGET_ERROR(curr, "failed to resume at address: 0x%" PRIx32,
|
||||
address);
|
||||
retval = ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user