Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19m6Pr-00049H-BE for qemu-devel@nongnu.org; Mon, 11 Aug 2003 02:44:27 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19m6PL-00042F-Ar for qemu-devel@nongnu.org; Mon, 11 Aug 2003 02:44:26 -0400 Received: from [134.2.3.13] (helo=mx03.uni-tuebingen.de) by monty-python.gnu.org with esmtp (Exim 4.20) id 19m6Mr-0003Hf-Bn for qemu-devel@nongnu.org; Mon, 11 Aug 2003 02:41:21 -0400 Received: from juist (semeai.Informatik.Uni-Tuebingen.De [134.2.15.66]) by mx03.uni-tuebingen.de (8.12.3/8.12.3) with ESMTP id h7B6f9IJ023878 for ; Mon, 11 Aug 2003 08:41:10 +0200 Received: from falk by juist with local (Exim 3.36 #1 (Debian)) id 19m6Mf-0000Eb-00 for ; Mon, 11 Aug 2003 08:41:09 +0200 From: Falk Hueffner Date: 11 Aug 2003 08:41:09 +0200 Message-ID: <87vft47l2y.fsf@student.uni-tuebingen.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Subject: [Qemu-devel] qemu compile fix Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-=-= Hi, this is needed to make qemu compile with gcc 3.3, plus a fix for shift width >= type width. It still doesn't work for me on Alpha for nontrivial programs, I think there's a problem with larger heap allocations, e. g.: falk@juist:/src/qemu% ./i386/qemu /src/qemu.works3/tests/prime2 400000 There are 33860 prime numbers less than 400000 falk@juist:/src/qemu% ./i386/qemu /src/qemu.works3/tests/prime2 800000 qemu: uncaught target signal 11 (Segmentation fault) - exiting prime2 just does a sieve and allocates n*4 bytes... -- Falk --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=qemu.patch ? ChangeLog ? arm ? config-host.h ? config-host.mak ? dyngen ? i386 ? i386-softmmu ? qemu-doc.html ? vlmkcow Index: signal.c =================================================================== RCS file: /cvsroot/qemu/qemu/signal.c,v retrieving revision 1.17 diff -u -p -r1.17 signal.c --- signal.c 13 Jul 2003 17:33:54 -0000 1.17 +++ signal.c 11 Aug 2003 06:36:11 -0000 @@ -152,7 +152,7 @@ void target_to_host_sigset(sigset_t *d, ((unsigned long *)d)[i] = tswapl(s->sig[i]); } #elif TARGET_LONG_BITS == 32 && HOST_LONG_BITS == 64 && TARGET_NSIG_WORDS == 2 - ((unsigned long *)d)[0] = sigmask | (tswapl(s->sig[1]) << 32); + ((unsigned long *)d)[0] = sigmask | ((unsigned long) tswapl(s->sig[1]) << 32); #else #error target_to_host_sigset #endif /* TARGET_LONG_BITS */ Index: vl.h =================================================================== RCS file: /cvsroot/qemu/qemu/vl.h,v retrieving revision 1.3 diff -u -p -r1.3 vl.h --- vl.h 10 Aug 2003 21:52:11 -0000 1.3 +++ vl.h 11 Aug 2003 06:36:19 -0000 @@ -60,7 +60,7 @@ int bdrv_commit(BlockDriverState *bs); struct cow_header_v2 { uint32_t magic; - uint32_t long version; + uint32_t version; char backing_file[1024]; int32_t mtime; uint64_t size; --=-=-=--