From: Thiemo Seufer <ths@networkno.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4700] Register helper functions.
Date: Sun, 08 Jun 2008 07:42:23 +0000 [thread overview]
Message-ID: <E1K5FXj-00084H-IO@cvs.savannah.gnu.org> (raw)
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;
}
reply other threads:[~2008-06-08 7:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1K5FXj-00084H-IO@cvs.savannah.gnu.org \
--to=ths@networkno.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).