Skip to contentSkip to conversation

[5094] PPC: add support for TCG helpers

Qemu-devel Aurelien Jarno 1 participant 1 message Aug 28, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5094

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5094
Author:   aurel32
Date:     2008-08-28 21:01:45 +0000 (Thu, 28 Aug 2008)

Log Message:
-----------
PPC: add support for TCG helpers

Modified Paths:
--------------
trunk/target-ppc/translate.c

Added Paths:
-----------
trunk/target-ppc/helper.h

Added: trunk/target-ppc/helper.h
===================================================================

target-ppc/helper.h +4 -0
@@ -0,0 +1,4 @@
+#ifndef DEF_HELPER
+#define DEF_HELPER(ret, name, params) ret name params;
+#endif
+

Modified: trunk/target-ppc/translate.c
===================================================================

target-ppc/translate.c +7 -0
@@ -26,6 +26,7 @@
 #include "cpu.h"
 #include "exec-all.h"
 #include "disas.h"
+#include "helper.h"
 #include "tcg-op.h"
 #include "qemu-common.h"
 
@@ -65,6 +66,12 @@
     cpu_T[1] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG2, "T1");
     cpu_T[2] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG3, "T2");
 #endif
+
+    /* register helpers */
+#undef DEF_HELPER
+#define DEF_HELPER(ret, name, params) tcg_register_helper(name, #name);
+#include "helper.h"
+
     done_init = 1;
 }