qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] small patches
Date: 23 Nov 2003 18:06:52 +0100	[thread overview]
Message-ID: <87brr3ko9f.fsf@student.uni-tuebingen.de> (raw)


* 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);

                 reply	other threads:[~2003-11-23 18:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87brr3ko9f.fsf@student.uni-tuebingen.de \
    --to=falk.hueffner@student.uni-tuebingen.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).