Fix jim_target_smp for smp rtos target
commit04887d3b688aef999f83eebf9c521d1bb7d29b0b
authorEvgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Fri, 16 Sep 2022 13:01:46 +0000 (16 16:01 +0300)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 3 Dec 2022 09:27:00 +0000 (3 09:27 +0000)
treea04463a5a660c0e01890ceaed4a0bdbd3079cb07
parent4fe3997294e24d9a7bb41290088d6410f7ba1eca
Fix jim_target_smp for smp rtos target

If multiple targets are specified as -rtos <rtos_type>, the
rtos_update_threads was called only if the last target was specified as
rtos, which is inconsistent with other checks of whether or not smp target
is an rtos one.

Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Change-Id: Ie52bc6b6c8f841d31b9590fcbc44e985d3cba0eb
Reviewed-on: https://review.openocd.org/c/openocd/+/7244
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/target.c