Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BU5Ee-0001MQ-MW for qemu-devel@nongnu.org; Sat, 29 May 2004 10:54:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BU5Ed-0001Lv-Sy for qemu-devel@nongnu.org; Sat, 29 May 2004 10:54:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BU5Ed-0001Ls-Qj for qemu-devel@nongnu.org; Sat, 29 May 2004 10:54:55 -0400 Received: from [81.209.184.159] (helo=dd2718.kasserver.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BU5EA-0000It-To for qemu-devel@nongnu.org; Sat, 29 May 2004 10:54:27 -0400 Received: from [192.168.0.7] (dsl-082-082-145-164.arcor-ip.net [82.82.145.164]) by dd2718.kasserver.com (Postfix) with ESMTP id 70B34250B1 for ; Sat, 29 May 2004 16:52:51 +0200 (CEST) Message-ID: <40B8A420.3010009@fabianowski.de> Date: Sat, 29 May 2004 16:54:24 +0200 From: Bartosz Fabianowski MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090605090902030807020504" Subject: [Qemu-devel] More FreeBSD patches Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------090605090902030807020504 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090605090902030807020504 Content-Type: text/plain; name="bsd_patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bsd_patch.diff" 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 } --------------090605090902030807020504--