]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
Fix compiling Sparc64 on PPC host
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 20 Oct 2007 07:07:47 +0000 (07:07 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 20 Oct 2007 07:07:47 +0000 (07:07 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3411 c046a42c-6fe2-441c-8c8c-71466251a162

target-sparc/op.c
target-sparc/op_helper.c

index 80864c3bb8f9a8021d43fd53c56e04bed0c81047..55ea2b9fe4b223397031ea2f530d4478da545f3c 100644 (file)
@@ -1711,6 +1711,9 @@ void OPPROTO op_fcmped_fcc3(void)
 /* Integer to float conversion.  */
 #ifdef USE_INT_TO_FLOAT_HELPERS
 F_HELPER(ito);
+#ifdef TARGET_SPARC64
+F_HELPER(xto);
+#endif
 #else
 F_OP(ito, s)
 {
index ab456e30c34803450a52ff01ea9aea271233d73f..460ede2498762275c959c8000659c8232a6004ba 100644 (file)
@@ -69,6 +69,21 @@ void do_fitod(void)
 {
     DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status);
 }
+#ifdef TARGET_SPARC64
+void do_fxtos(void)
+{
+    set_float_exception_flags(0, &env->fp_status);
+    FT0 = int64_to_float32(*((int64_t *)&DT1), &env->fp_status);
+    check_ieee_exceptions();
+}
+
+void do_fxtod(void)
+{
+    set_float_exception_flags(0, &env->fp_status);
+    DT0 = int64_to_float64(*((int64_t *)&DT1), &env->fp_status);
+    check_ieee_exceptions();
+}
+#endif
 #endif
 
 void do_fabss(void)