Adding instruction table and basic PPC state.
Can decode a single instruction.
This commit is contained in:
@@ -95,6 +95,9 @@ typedef XECACHEALIGN volatile void xe_aligned_void_t;
|
||||
#endif // GNUC
|
||||
#endif // !MIN
|
||||
|
||||
#define XEBITMASK(a, b) (((unsigned) -1 >> (31 - (b))) & ~((1U << (a)) - 1))
|
||||
#define XESELECTBITS(value, a, b) ((value & XEBITMASK(a, b)) >> a)
|
||||
|
||||
#define XEFAIL() goto XECLEANUP
|
||||
#define XEEXPECT(expr) if (!(expr) ) { goto XECLEANUP; }
|
||||
#define XEEXPECTTRUE(expr) if (!(expr) ) { goto XECLEANUP; }
|
||||
@@ -106,4 +109,21 @@ typedef XECACHEALIGN volatile void xe_aligned_void_t;
|
||||
#define XEIGNORE(expr) do { (void)(expr); } while(0)
|
||||
|
||||
|
||||
typedef struct XECACHEALIGN {
|
||||
union {
|
||||
struct {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float w;
|
||||
};
|
||||
float f4[4];
|
||||
struct {
|
||||
uint64_t low;
|
||||
uint64_t high;
|
||||
};
|
||||
};
|
||||
} xefloat4_t;
|
||||
|
||||
|
||||
#endif // XENIA_TYPES_H_
|
||||
|
||||
Reference in New Issue
Block a user