From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ANyfI-0003rC-PH for qemu-devel@nongnu.org; Sun, 23 Nov 2003 13:08:56 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ANyem-0003Pz-HS for qemu-devel@nongnu.org; Sun, 23 Nov 2003 13:08:55 -0500 Received: from [134.2.12.32] (helo=mx5.informatik.uni-tuebingen.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ANyel-0003MZ-KI for qemu-devel@nongnu.org; Sun, 23 Nov 2003 13:08:23 -0500 Received: from localhost (loopback [127.0.0.1]) by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id 34EC8122 for ; Sun, 23 Nov 2003 18:06:57 +0100 (NFT) Received: from mx3.informatik.uni-tuebingen.de ([134.2.12.26]) by localhost (mx5 [134.2.12.32]) (amavisd-new, port 10024) with ESMTP id 16236-02 for ; Sun, 23 Nov 2003 18:06:55 +0100 (NFT) Received: from juist (semeai [134.2.15.66]) by mx3.informatik.uni-tuebingen.de (Postfix) with ESMTP id A52D113B for ; Sun, 23 Nov 2003 18:06:54 +0100 (NFT) Received: from falk by juist with local (Exim 3.36 #1 (Debian)) id 1ANxhF-0000er-00 for ; Sun, 23 Nov 2003 18:06:53 +0100 From: Falk Hueffner Date: 23 Nov 2003 18:06:52 +0100 Message-ID: <87brr3ko9f.fsf@student.uni-tuebingen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] small patches Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org * don't abort for empty code on Alpha * warning fix * cast as lvalue is deprecated (and probably not intended anyway) * lrint returns long (why is this declared, anyway?) Falk Index: dyngen.c =================================================================== RCS file: /cvsroot/qemu/qemu/dyngen.c,v retrieving revision 1.28 diff -u -p -r1.28 dyngen.c --- dyngen.c 10 Aug 2003 22:14:22 -0000 1.28 +++ dyngen.c 23 Nov 2003 14:59:55 -0000 @@ -486,7 +486,7 @@ void gen_code(const char *name, host_ulo uint8_t *p; p = p_end - 4; if (p == p_start) - error("empty code for %s", name); + fprintf(stderr, "empty code for %s", name); if (get32((uint32_t *)p) != 0x6bfa8001) error("ret expected at the end of %s", name); copy_size = p - p_start; @@ -663,7 +663,7 @@ void gen_code(const char *name, host_ulo } } - fprintf(outfile, " memcpy(gen_code_ptr, (void *)((char *)&%s+%d), %d);\n", name, start_offset - offset, copy_size); + fprintf(outfile, " memcpy(gen_code_ptr, (void *)((char *)&%s+%ld), %d);\n", name, start_offset - offset, copy_size); /* emit code offset information */ { Index: elfload.c =================================================================== RCS file: /cvsroot/qemu/qemu/elfload.c,v retrieving revision 1.15 diff -u -p -r1.15 elfload.c --- elfload.c 30 Sep 2003 20:58:32 -0000 1.15 +++ elfload.c 23 Nov 2003 14:59:56 -0000 @@ -311,8 +311,8 @@ static unsigned long copy_strings(int ar if (--offset < 0) { offset = p % TARGET_PAGE_SIZE; if (!(pag = (char *) page[p/TARGET_PAGE_SIZE]) && - !(pag = (char *) page[p/TARGET_PAGE_SIZE] = - (unsigned long *) get_free_page())) { + !(pag = (char *) (page[p/TARGET_PAGE_SIZE] = + (unsigned long *) get_free_page()))) { return 0; } } Index: target-i386/exec.h =================================================================== RCS file: /cvsroot/qemu/qemu/target-i386/exec.h,v retrieving revision 1.5 diff -u -p -r1.5 exec.h --- target-i386/exec.h 13 Nov 2003 01:42:19 -0000 1.5 +++ target-i386/exec.h 23 Nov 2003 14:59:56 -0000 @@ -306,7 +306,7 @@ static inline void stfl(void *ptr, float #define rint rintl #endif -extern int lrint(CPU86_LDouble x); +extern long lrint(CPU86_LDouble x); extern int64_t llrint(CPU86_LDouble x); extern CPU86_LDouble fabs(CPU86_LDouble x); extern CPU86_LDouble sin(CPU86_LDouble x);