rpms/qemu/devel qemu-0.8.2-target-sparc.patch, NONE, 1.1 qemu.spec, 1.17, 1.18

Matthias Saou (thias) fedora-extras-commits at redhat.com
Thu Aug 24 09:00:29 UTC 2006


Author: thias

Update of /cvs/extras/rpms/qemu/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31591

Modified Files:
	qemu.spec 
Added Files:
	qemu-0.8.2-target-sparc.patch 
Log Message:
Add target-sparc patch to fix compiling on ppc (some int32 to float).


qemu-0.8.2-target-sparc.patch:

--- NEW FILE qemu-0.8.2-target-sparc.patch ---
diff -Naupr qemu-0.8.2.orig/target-sparc/op_helper.c qemu-0.8.2/target-sparc/op_helper.c
--- qemu-0.8.2.orig/target-sparc/op_helper.c	2006-07-22 19:23:34.000000000 +0200
+++ qemu-0.8.2/target-sparc/op_helper.c	2006-08-24 10:58:30.000000000 +0200
@@ -12,12 +12,12 @@ void raise_exception(int tt)
 #ifdef USE_INT_TO_FLOAT_HELPERS
 void do_fitos(void)
 {
-    FT0 = int32_to_float32(*((int32_t *)&FT1));
+    FT0 = int32_to_float32(*((int32_t *)&FT1), &env->fp_status);
 }
 
 void do_fitod(void)
 {
-    DT0 = int32_to_float64(*((int32_t *)&FT1));
+    DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status);
 }
 #endif
 


Index: qemu.spec
===================================================================
RCS file: /cvs/extras/rpms/qemu/devel/qemu.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- qemu.spec	23 Aug 2006 17:34:19 -0000	1.17
+++ qemu.spec	24 Aug 2006 09:00:29 -0000	1.18
@@ -10,6 +10,7 @@
 Patch0: qemu-0.7.0-build.patch
 Patch1: qemu-0.8.0-sdata.patch
 Patch2: qemu-0.8.2-kernheaders.patch
+Patch3: qemu-0.8.2-target-sparc.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: SDL-devel compat-gcc-34 zlib-devel which texi2html
 Requires(post): /sbin/chkconfig
@@ -35,6 +36,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 ./configure --prefix=%{_prefix} --interp-prefix=%{_prefix}/qemu-%%M \
@@ -95,6 +97,7 @@
 - Don't include texi files in %%doc since we ship them in html.
 - Switch to using gcc34 on devel, FC5 still has gcc32.
 - Add kernheaders patch to fix linux/compiler.h inclusion.
+- Add target-sparc patch to fix compiling on ppc (some int32 to float).
 
 * Thu Jun  8 2006 David Woodhouse <dwmw2 at infradead.org> 0.8.1-3
 - More header abuse in modify_ldt(), change BuildRoot:




More information about the fedora-extras-commits mailing list