summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpdbg/chip.c')
-rw-r--r--libpdbg/chip.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpdbg/chip.c b/libpdbg/chip.c
index 70d349d..539438a 100644
--- a/libpdbg/chip.c
+++ b/libpdbg/chip.c
@@ -115,6 +115,15 @@ int ram_stop_thread(struct target *thread_target)
return thread->stop(thread);
}
+int ram_sreset_thread(struct target *thread_target)
+{
+ struct thread *thread;
+
+ assert(!strcmp(thread_target->class, "thread"));
+ thread = target_to_thread(thread_target);
+ return thread->sreset(thread);
+}
+
/*
* RAMs the opcodes in *opcodes and store the results of each opcode
* into *results. *results must point to an array the same size as
OpenPOWER on IntegriCloud