Core commit. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / mupen64plus-core / src / r4300 / new_dynarec / assem_x86.h
diff --git a/source/mupen64plus-core/src/r4300/new_dynarec/assem_x86.h b/source/mupen64plus-core/src/r4300/new_dynarec/assem_x86.h
new file mode 100644 (file)
index 0000000..f2f9322
--- /dev/null
@@ -0,0 +1,20 @@
+#define HOST_REGS 8
+#define HOST_CCREG 6
+#define HOST_BTREG 5
+#define EXCLUDE_REG 4
+
+//#define IMM_PREFETCH 1
+#define HOST_IMM_ADDR32 1
+#define INVERTED_CARRY 1
+#define DESTRUCTIVE_WRITEBACK 1
+#define DESTRUCTIVE_SHIFT 1
+
+#define USE_MINI_HT 1
+
+extern void *base_addr; // Code generator target address
+#define TARGET_SIZE_2 25 // 2^25 = 32 megabytes
+#define JUMP_TABLE_SIZE 0 // Not needed for 32-bit x86
+
+/* x86 calling convention:
+   caller-save: %eax %ecx %edx
+   callee-save: %ebp %ebx %esi %edi */