summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-07-31 15:08:00 +1000
committerAlistair Popple <alistair@popple.id.au>2017-07-31 15:08:00 +1000
commitac22a4005d40e6e7d23cc1a7e73c4da8b8b6a898 (patch)
tree3ccb51c1ebaff165ea45e60e903c9ba5f644390b /libpdbg/chip.c
parent5aa6dd48db50d93188f6f5fe2966f802ba85d5b1 (diff)
downloadpdbg-ac22a4005d40e6e7d23cc1a7e73c4da8b8b6a898.tar.gz
pdbg-ac22a4005d40e6e7d23cc1a7e73c4da8b8b6a898.zip
libpdbg: Add sreset command
Signed-off-by: Alistair Popple <alistair@popple.id.au>
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