From 5c9bd86924e3afe39930304eb8dabb8cac0b3338 Mon Sep 17 00:00:00 2001 From: Matthias Saou Date: Aug 24 2006 09:00:29 +0000 Subject: Add target-sparc patch to fix compiling on ppc (some int32 to float). --- diff --git a/qemu-0.8.2-target-sparc.patch b/qemu-0.8.2-target-sparc.patch new file mode 100644 index 0000000..6810027 --- /dev/null +++ b/qemu-0.8.2-target-sparc.patch @@ -0,0 +1,18 @@ +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 + diff --git a/qemu.spec b/qemu.spec index 4a8b4dc..9706fbd 100644 --- a/qemu.spec +++ b/qemu.spec @@ -10,6 +10,7 @@ Source1: qemu.init 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 @@ As QEMU requires no host kernel patches to run, it is safe and easy to use. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build ./configure --prefix=%{_prefix} --interp-prefix=%{_prefix}/qemu-%%M \ @@ -95,6 +97,7 @@ fi - 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 0.8.1-3 - More header abuse in modify_ldt(), change BuildRoot: