summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/mips/mips3fe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/mips/mips3fe.h')
-rw-r--r--src/emu/cpu/mips/mips3fe.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/emu/cpu/mips/mips3fe.h b/src/emu/cpu/mips/mips3fe.h
new file mode 100644
index 00000000000..a6f76759e9b
--- /dev/null
+++ b/src/emu/cpu/mips/mips3fe.h
@@ -0,0 +1,50 @@
+/***************************************************************************
+
+ mips3fe.h
+
+ Front-end for MIPS3 recompiler
+
+ Copyright (c) 2007, Aaron Giles
+ Released for general use under the MAME license
+ Visit http://mamedev.org for licensing and usage restrictions.
+
+***************************************************************************/
+
+#ifndef __MIPS3FE_H__
+#define __MIPS3FE_H__
+
+#include "cpu/drcfe.h"
+
+
+/***************************************************************************
+ CONSTANTS
+***************************************************************************/
+
+/* register flags */
+#define REGFLAG_R(n) (((n) == 0) ? 0 : ((UINT64)1 << (n)))
+#define REGFLAG_LO (REGFLAG_R(REG_LO))
+#define REGFLAG_HI (REGFLAG_R(REG_HI))
+#define REGFLAG_CPR1(n) ((UINT64)1 << (n))
+#define REGFLAG_FCC (REGFLAG_CPR1(32))
+
+
+
+/***************************************************************************
+ CONSTANTS
+***************************************************************************/
+
+/* this defines a branch targetpc that is dynamic at runtime */
+#define BRANCH_TARGET_DYNAMIC (~0)
+
+
+/* opcode branch flags */
+#define OPFLAG_IS_UNCONDITIONAL_BRANCH 0x00000001 /* instruction is unconditional branch */
+
+
+/***************************************************************************
+ FUNCTION PROTOTYPES
+***************************************************************************/
+
+int mips3fe_describe(void *param, opcode_desc *desc);
+
+#endif