diff mbox

[4/9] Add risu_reginfo_ppc.h file

Message ID D2FDBDAA-4477-4BA6-B03A-8836CB6CE173@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Programmingkid April 25, 2017, 3:20 a.m. UTC
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 */
diff mbox

Patch

diff --git a/risu_reginfo_ppc.h b/risu_reginfo_ppc.h
new file mode 100644
index 0000000..c3b342d
--- /dev/null
+++ b/risu_reginfo_ppc.h
@@ -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.