@@ -666,3 +666,18 @@ int thread_getregs(struct pdbg_target *thread, struct thread_regs *regs)
return 0;
}
+
+static struct proc proc = {
+ .target = {
+ .name = "Processor Module",
+ .compatible = "ibm,processor",
+ .class = "proc",
+ },
+};
+DECLARE_HW_UNIT(proc);
+
+__attribute__((constructor))
+static void register_proc(void)
+{
+ pdbg_hwunit_register(&proc_hw_unit);
+}
@@ -46,6 +46,10 @@ const struct hw_unit_info *pdbg_hwunit_find_compatible(const char *compat);
const struct hw_unit_info __used name ##_hw_unit = \
{ .hw_unit = &name, .size = sizeof(name) };
+struct proc {
+ struct pdbg_target target;
+};
+
struct htm {
struct pdbg_target target;
int (*start)(struct htm *);