Skip to contentSkip to conversation

[5668] target-ppc: convert most SPE integer instructions to TCG

Qemu-devel Aurelien Jarno 1 participant 1 message Nov 10, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5668

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5668
Author:   aurel32
Date:     2008-11-10 11:10:23 +0000 (Mon, 10 Nov 2008)

Log Message:
-----------
target-ppc: convert most SPE integer instructions to TCG

Modified Paths:
--------------
trunk/target-ppc/cpu.h
trunk/target-ppc/helper.h
trunk/target-ppc/op.c
trunk/target-ppc/op_helper.c
trunk/target-ppc/translate.c

Modified: trunk/target-ppc/cpu.h
===================================================================

target-ppc/cpu.h +8 -4
@@ -832,10 +832,14 @@
 
 /*****************************************************************************/
 /* CRF definitions */
-#define CRF_LT  3
-#define CRF_GT  2
-#define CRF_EQ  1
-#define CRF_SO  0
+#define CRF_LT        3
+#define CRF_GT        2
+#define CRF_EQ        1
+#define CRF_SO        0
+#define CRF_CH        (1 << 4)
+#define CRF_CL        (1 << 3)
+#define CRF_CH_OR_CL  (1 << 2)
+#define CRF_CH_AND_CL (1 << 1)
 
 /* XER definitions */
 #define XER_SO  31

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

target-ppc/helper.h +3 -0
@@ -23,3 +23,6 @@
 DEF_HELPER(target_ulong, helper_srad, (target_ulong, target_ulong))
 #endif
 
+DEF_HELPER(uint32_t, helper_cntlsw32, (uint32_t))
+DEF_HELPER(uint32_t, helper_cntlzw32, (uint32_t))
+DEF_HELPER(uint32_t, helper_brinc, (uint32_t, uint32_t))

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

target-ppc/op.c +0 -162

174 lines not on this page · raw message

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

target-ppc/op_helper.c +16 -144

195 lines not on this page · raw message

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

target-ppc/translate.c +574 -160

845 lines not on this page · raw message