aboutsummaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-06-29 16:57:12 -0700
committerTim Newsome <tim@sifive.com>2023-07-06 10:40:28 -0700
commit8fdce4534fb816430545c08eb59439e6ce0b0843 (patch)
treeb6a757c3a4a21f073932540c868440992c6bf98a /src/rtos
parent21d21408aa36ccb458ccfaad871f7dd1bb1f731a (diff)
downloadriscv-openocd-8fdce4534fb816430545c08eb59439e6ce0b0843.zip
riscv-openocd-8fdce4534fb816430545c08eb59439e6ce0b0843.tar.gz
riscv-openocd-8fdce4534fb816430545c08eb59439e6ce0b0843.tar.bz2
rtos/hwthread: Call rtos_free_threadlist() again.
I think this was incorrectly removed in a merge. Change-Id: I49fce230f35ae7bd368d2ed780c6c1ffe5939fda
Diffstat (limited to 'src/rtos')
-rw-r--r--src/rtos/hwthread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rtos/hwthread.c b/src/rtos/hwthread.c
index eac72fc..61ceb66 100644
--- a/src/rtos/hwthread.c
+++ b/src/rtos/hwthread.c
@@ -95,6 +95,9 @@ static int hwthread_update_threads(struct rtos *rtos)
target = rtos->target;
+ /* wipe out previous thread details if any */
+ rtos_free_threadlist(rtos);
+
/* determine the number of "threads" */
if (target->smp) {
foreach_smp_target(head, target->smp_targets) {