new file mode 100644
@@ -0,0 +1,32 @@
+/******************************************
+ * File: risu_reginfo_ppc.h
+ * Description: 32 bit powerpc registers
+ * Date: 3-26-2017
+ ******************************************/
+
+#ifndef RISU_REGINFO_PPC_H
+#define RISU_REGINFO_PPC_H
+
+struct reginfo
+{
+ uint32_t faulting_insn;
+ uint32_t previous_instruction; /* The instruction before the
faulting instruction */
+ uint32_t second_previous_instruction; /* The second instruction
before the faulting instruction */
+
+ /************** User Model UISA *********************************/
+
+ uint32_t gpr[32]; /* General Purpose Registers */
+ double fpr[32]; /* Floating-point Registers */
+ uint32_t cr; /* Condition Register */
+ uint32_t fpscr; /* Floating-point Status and Control
Register */
+ uint32_t xer; /* Fixed-point Exception Register */
+ uint32_t lr; /* Link Register */
+ uint32_t ctr; /* Count Register */
+
+ /*
+ * Since we can't test any registers in the Supervisor Model,
they are not
+ * included.
Add the risu_reginfo_ppc.h file. It defines the reginfo structure. Signed-off-by: John Arbuckle <programmingkidx@gmail.com> --- risu_reginfo_ppc.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 risu_reginfo_ppc.h + */ +}; + +#endif /* RISU_REGINFO_PPC_H */