diff options
author | Evgeniy Naydanov <109669442+en-sc@users.noreply.github.com> | 2024-06-05 19:26:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 19:26:06 +0300 |
commit | 40cda81e8bab91c1cb864a7d01aad5192d57c528 (patch) | |
tree | 2f90560e2468d8bde22179c3ba99b41064570047 /src/rtos/rtkernel.c | |
parent | b548653f66db7cc73bd0bdce33bc51220e509078 (diff) | |
parent | 9c4a5d64ca8e4310fd81de22bbf141c2a1d62b36 (diff) | |
download | riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.zip riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.tar.gz riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.tar.bz2 |
Merge pull request #1075 from en-sc/en-sc/from_upstream
Merge up to 437dde701c13e707e5fd912ef6403e09052e4d9b from upstream
Diffstat (limited to 'src/rtos/rtkernel.c')
-rw-r--r-- | src/rtos/rtkernel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rtos/rtkernel.c b/src/rtos/rtkernel.c index ba1de25..aebbf3d 100644 --- a/src/rtos/rtkernel.c +++ b/src/rtos/rtkernel.c @@ -12,7 +12,6 @@ #include <helper/time_support.h> #include <jtag/jtag.h> #include "target/target.h" -#include "target/target_type.h" #include "rtos.h" #include "helper/log.h" #include "helper/types.h" @@ -363,7 +362,7 @@ static bool rtkernel_detect_rtos(struct target *target) static int rtkernel_create(struct target *target) { for (size_t i = 0; i < ARRAY_SIZE(rtkernel_params_list); i++) { - if (strcmp(rtkernel_params_list[i].target_name, target->type->name) == 0) { + if (strcmp(rtkernel_params_list[i].target_name, target_type_name(target)) == 0) { target->rtos->rtos_specific_params = (void *)&rtkernel_params_list[i]; return 0; } |