summaryrefslogtreecommitdiff
path: root/target-mips/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-mips/helper.h')
-rw-r--r--target-mips/helper.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/target-mips/helper.h b/target-mips/helper.h
index 98a97c9be2..cee92fc823 100644
--- a/target-mips/helper.h
+++ b/target-mips/helper.h
@@ -1,8 +1,14 @@
-void do_raise_exception_err(int excp, int err);
-void do_raise_exception(int excp);
-void do_interrupt_restart (void);
+#ifndef DEF_HELPER
+#define DEF_HELPER(ret, name, params) ret name params;
+#endif
-void do_clo (void);
-void do_clz (void);
-void do_dclo (void);
-void do_dclz (void);
+DEF_HELPER(void, do_raise_exception_err, (int excp, int err))
+DEF_HELPER(void, do_raise_exception, (int excp))
+DEF_HELPER(void, do_interrupt_restart, (void))
+
+DEF_HELPER(void, do_clo, (void))
+DEF_HELPER(void, do_clz, (void))
+#ifdef TARGET_MIPS64
+DEF_HELPER(void, do_dclo, (void))
+DEF_HELPER(void, do_dclz, (void))
+#endif