qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] More FreeBSD patches


From: Bartosz Fabianowski
Subject: [Qemu-devel] More FreeBSD patches
Date: Sat, 29 May 2004 16:54:24 +0200
User-agent: Mozilla Thunderbird 0.6 (X11/20040517)

Hi

Looking at current CVS, it seems that the FreeBSD patches posted on this list some time ago have been committed. However, some time has gone by since those patches were written and QEMU has evolved a bit. Thus, there are a few more issues with compilation on FreeBSD not addressed by those patches.

I have made a new small patch that, when applied to current CVS, makes QEMU compile and run on FreeBSD very nicely. It would be great if somebody could commit this.

By the way, I am wondering what the correct method for submitting patches to QEMU is. I saw that there is a bug tracker on the Savannah site, but it seems to be rather deserted. Should I just keep sending patches to this mailing list? Or is there some other place for bug reports and patches?

Regards,
- Bartosz Fabianowski
diff -rud qemu/configure qemu-patched/configure
--- qemu/configure      Thu May 20 15:23:39 2004
+++ qemu-patched/configure      Sat May 29 14:24:19 2004
@@ -204,7 +204,11 @@
 
 if test -z "$sdl" ; then
 
+if test "$bsd" = "yes" ; then
+sdl_config="sdl11-config"
+else
 sdl_config="sdl-config"
+fi
 sdl=no
 sdl_static=no
 
@@ -419,9 +423,11 @@
 if [ "$bsd" = "yes" ] ; then
   echo "#define O_LARGEFILE 0" >> $config_h
   echo "#define lseek64 lseek" >> $config_h
+  echo "#define mkstemp64 mkstemp" >> $config_h
   echo "#define ftruncate64 ftruncate" >> $config_h
   echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h
   echo "#define _BSD 1" >> $config_h
+  echo "#define off64_t off_t" >> $config_h
 fi
 
 for target in $target_list; do 
diff -rud qemu/vl.c qemu-patched/vl.c
--- qemu/vl.c   Thu May 27 00:12:06 2004
+++ qemu-patched/vl.c   Sat May 29 14:25:53 2004
@@ -828,6 +828,7 @@
            the emulated kernel requested a too high timer frequency */
         getitimer(ITIMER_REAL, &itv);
 
+#if defined(__linux__)
         if (itv.it_interval.tv_usec > 1000) {
             /* try to use /dev/rtc to have a faster timer */
             if (start_rtc_timer() < 0)
@@ -848,6 +849,10 @@
             pit_min_timer_count = ((uint64_t)itv.it_interval.tv_usec * 
                                    PIT_FREQ) / 1000000;
         }
+#else
+        pit_min_timer_count = ((uint64_t)itv.it_interval.tv_usec *
+                               PIT_FREQ) / 1000000;
+#endif /* !defined(__linux__) */
     }
 #endif
 }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]