* [Qemu-devel] [4700] Register helper functions.
@ 2008-06-08 7:42 Thiemo Seufer
0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2008-06-08 7:42 UTC (permalink / raw)
To: qemu-devel
Revision: 4700
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4700
Author: ths
Date: 2008-06-08 07:42:23 +0000 (Sun, 08 Jun 2008)
Log Message:
-----------
Register helper functions.
Modified Paths:
--------------
trunk/target-mips/helper.h
trunk/target-mips/translate.c
Modified: trunk/target-mips/helper.h
===================================================================
--- trunk/target-mips/helper.h 2008-06-08 04:27:56 UTC (rev 4699)
+++ trunk/target-mips/helper.h 2008-06-08 07:42:23 UTC (rev 4700)
@@ -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
Modified: trunk/target-mips/translate.c
===================================================================
--- trunk/target-mips/translate.c 2008-06-08 04:27:56 UTC (rev 4699)
+++ trunk/target-mips/translate.c 2008-06-08 07:42:23 UTC (rev 4700)
@@ -7476,6 +7476,11 @@
cpu_T[1] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG2, "T1");
#endif
+ /* register helpers */
+#undef DEF_HELPER
+#define DEF_HELPER(ret, name, params) tcg_register_helper(name, #name);
+#include "helper.h"
+
inited = 1;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-08 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-08 7:42 [Qemu-devel] [4700] Register helper functions Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).