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] qemu compile fix
Date: 11 Aug 2003 08:41:09 +0200	[thread overview]
Message-ID: <87vft47l2y.fsf@student.uni-tuebingen.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: qemu.patch --]
[-- Type: text/x-patch, Size: 1256 bytes --]

? 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;

                 reply	other threads:[~2003-08-11  6:44 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=87vft47l2y.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).