Skip to contentSkip to conversation

some compile fixes for powerpc hosts

PATCH New Magnus Damm 1 participant 1 message Jan 8, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 some compile fixes for powerpc hosts

Hello,

Here are two pretty basic compile fixes. With them it is almost possible to build i386-softmmu on a ppc host running Linux.

/ magnus

Index: target-i386/exec.h
===================================================================
RCS file: /cvsroot/qemu/qemu/target-i386/exec.h,v
retrieving revision 1.19

exec.h +1 -1
diff -u -r1.19 exec.h
@@ -459,7 +459,7 @@
     return temp.d;
 }
 
-static inline void helper_fstt(CPU86_LDouble f, uint8_t *ptr)
+static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr)
 {
     CPU86_LDoubleU temp;
     int e;

Index: target-i386/op.c
===================================================================
RCS file: /cvsroot/qemu/qemu/target-i386/op.c,v
retrieving revision 1.26

op.c +2 -0
diff -u -r1.26 op.c
@@ -752,10 +752,12 @@
     T0 = (int16_t)T0;
 }
 
+#ifdef TARGET_X86_64
 void OPPROTO op_movslq_T0_T0(void)
 {
     T0 = (int32_t)T0;
 }
+#endif
 
 void OPPROTO op_movzwl_T0_T0(void)
 {