Skip to contentSkip to conversation

[5505] target-ppc: convert crf related instructions to TCG

Qemu-devel Aurelien Jarno 1 participant 1 message Oct 21, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5505

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5505
Author:   aurel32
Date:     2008-10-21 11:31:14 +0000 (Tue, 21 Oct 2008)

Log Message:
-----------
target-ppc: convert crf related 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 +7 -1
@@ -829,7 +829,13 @@
 #include "cpu-all.h"
 
 /*****************************************************************************/
-/* Registers definitions */
+/* CRF definitions */
+#define CRF_LT  3
+#define CRF_GT  2
+#define CRF_EQ  1
+#define CRF_SO  0
+
+/* XER definitions */
 #define XER_SO  31
 #define XER_OV  30
 #define XER_CA  29

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

target-ppc/helper.h +5 -0
@@ -2,3 +2,8 @@
 #define DEF_HELPER(ret, name, params) ret name params;
 #endif
 
+DEF_HELPER(uint32_t, helper_fcmpo, (void))
+DEF_HELPER(uint32_t, helper_fcmpu, (void))
+
+DEF_HELPER(uint32_t, helper_load_cr, (void))
+DEF_HELPER(void, helper_store_cr, (target_ulong, uint32_t))

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

target-ppc/op.c +0 -179

215 lines not on this page · raw message

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

target-ppc/op_helper.c +27 -21

94 lines not on this page · raw message

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

target-ppc/translate.c +252 -182

889 lines not on this page · raw message