summaryrefslogtreecommitdiffstats
path: root/libpdbg/operations.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2016-01-13 17:25:07 +1100
committerAlistair Popple <alistair@popple.id.au>2016-01-13 17:46:42 +1100
commit59bb2d1dcabe41e925f5de19b1b5f99e07392938 (patch)
tree9dd3e1cb1845388f95963884266b2670334175fb /libpdbg/operations.h
parent4c3473a4785336103cc47de95fddbbba12b12e7a (diff)
downloadpdbg-59bb2d1dcabe41e925f5de19b1b5f99e07392938.tar.gz
pdbg-59bb2d1dcabe41e925f5de19b1b5f99e07392938.zip
Add support for secondary processors
Adds the -p option to select secondary processors and the 'probe' command to detect which processors and threads are present. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/operations.h')
-rw-r--r--libpdbg/operations.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libpdbg/operations.h b/libpdbg/operations.h
index 5e4bdda..7c8e1a7 100644
--- a/libpdbg/operations.h
+++ b/libpdbg/operations.h
@@ -38,10 +38,11 @@
/* Structure to allow alternative backend implentations */
struct scom_backend {
void (*destroy)(struct scom_backend *backend);
- int (*getscom)(struct scom_backend *backend, uint64_t *value, uint32_t addr);
- int (*putscom)(struct scom_backend *backend, uint64_t value, uint32_t addr);
- int (*getcfam)(struct scom_backend *backend, uint32_t *value, uint32_t addr);
- int (*putcfam)(struct scom_backend *backend, uint32_t value, uint32_t addr);
+ int (*getscom)(struct scom_backend *backend, int processor_id, uint64_t *value, uint32_t addr);
+ int (*putscom)(struct scom_backend *backend, int processor_id, uint64_t value, uint32_t addr);
+ int (*getcfam)(struct scom_backend *backend, int processor_id, uint32_t *value, uint32_t addr);
+ int (*putcfam)(struct scom_backend *backend, int processor_id, uint32_t value, uint32_t addr);
+ int processor_id;
void *priv;
};
@@ -60,8 +61,9 @@ int ram_start_chip(uint64_t chip, uint64_t thread_active);
int gdbserver_start(uint16_t port);
/* scom backend functions. Most other operations use these. */
-int backend_init(int slave_id);
+int backend_init(int processor_id);
void backend_destroy(void);
+void backend_set_processor(int processor_id);
int getscom(uint64_t *value, uint32_t addr);
int putscom(uint64_t value, uint32_t addr);
int getcfam(uint32_t *value, uint32_t addr);
OpenPOWER on IntegriCloud