]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/omap/arm.h
devether: remove duplicated parseether() implementation (pull from libip)
[plan9front.git] / sys / src / 9 / omap / arm.h
index 12443d8497e8061fb1fd874f3a5f6a9bad020468..250a0ba4206986bc4684d05e234105126fffa7c3 100644 (file)
 #define PsrZ           0x40000000              /* zero */
 #define PsrN           0x80000000              /* negative/less than */
 
+/* instruction decoding */
+#define ISCPOP(op)     ((op) == 0xE || ((op) & ~1) == 0xC)
+#define ISFPAOP(cp, op)        ((cp) == CpOFPA && ISCPOP(op))
+#define ISVFPOP(cp, op)        (((cp) == CpDFP || (cp) == CpFP) && ISCPOP(op))
+
 /*
  * Coprocessors
  */
+#define CpOFPA         1                       /* ancient 7500 FPA */
 #define CpFP           10                      /* float FP, VFP cfg. */
 #define CpDFP          11                      /* double FP */
 #define CpSC           15                      /* System Control */
 
+ /*
+  * CpFSR op1==0, Crm==0 opcode 2 values.
+  */
+#define CpDFSR         0                       /* data fault status */
+#define CpIFSR         1                       /* instruction fault status */
+
 /*
  * Primary (CRn) CpSC registers.
  */