qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Martin Garton <martin@wrasse.demon.co.uk>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] amd64 compile
Date: Sun, 25 Apr 2004 16:32:11 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0404251628150.31437-200000@wrasse.demon.co.uk> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 361 bytes --]


Hi,

qemu compile fails on amd64. the attached patch gives a succesful compile
with targets list "i386 i386-softmmu" It still doesn't run, and i386-user
still doesn't compile.

I don't know if my patch is neccesarily correct. I would appreciate 
any feedback.

Also, if anyone has got and further than I have on amd64, I would like to 
hear.

Regards,
Martin.

[-- Attachment #2: Type: TEXT/PLAIN, Size: 2567 bytes --]

? amd64_compile.patch
? arm-user
? config-host.h
? config-host.mak
? dyngen
? i386
? i386-softmmu
? i386-user
? ppc-softmmu
? ppc-user
? qemu-doc.html
? qemu-mkcow
? qemu-tech.html
? qemu.1
? sparc-user
Index: Makefile
===================================================================
RCS file: /cvsroot/qemu/qemu/Makefile,v
retrieving revision 1.61
diff -u -r1.61 Makefile
--- Makefile	4 Apr 2004 15:21:17 -0000	1.61
+++ Makefile	25 Apr 2004 15:30:51 -0000
@@ -1,6 +1,6 @@
 include config-host.mak
 
-CFLAGS=-Wall -O2 -g
+CFLAGS= -O2 -g
 ifdef CONFIG_WIN32
 CFLAGS+=-fpack-struct 
 endif
Index: Makefile.target
===================================================================
RCS file: /cvsroot/qemu/qemu/Makefile.target,v
retrieving revision 1.26
diff -u -r1.26 Makefile.target
--- Makefile.target	22 Apr 2004 00:02:08 -0000	1.26
+++ Makefile.target	25 Apr 2004 15:30:51 -0000
@@ -7,7 +7,7 @@
 VPATH+=:$(SRC_PATH)/linux-user
 DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
 endif
-CFLAGS=-Wall -O2 -g
+CFLAGS=-O2 -g
 LDFLAGS=-g
 LIBS=
 HELPER_CFLAGS=$(CFLAGS)
@@ -121,7 +121,7 @@
 ifeq ($(ARCH),alpha)
 # -msmall-data is not used because we want two-instruction relocations
 # for the constant constructions
-OP_CFLAGS=-Wall -O2 -g
+OP_CFLAGS=-O2 -g
 # Ensure there's only a single GP
 CFLAGS += -msmall-data
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/alpha.ld
Index: dyngen-exec.h
===================================================================
RCS file: /cvsroot/qemu/qemu/dyngen-exec.h,v
retrieving revision 1.10
diff -u -r1.10 dyngen-exec.h
--- dyngen-exec.h	21 Mar 2004 17:06:25 -0000	1.10
+++ dyngen-exec.h	25 Apr 2004 15:30:51 -0000
@@ -25,12 +25,16 @@
 typedef unsigned char uint8_t;
 typedef unsigned short uint16_t;
 typedef unsigned int uint32_t;
+#ifndef __x86_64__
 typedef unsigned long long uint64_t;
+#endif
 
 typedef signed char int8_t;
 typedef signed short int16_t;
 typedef signed int int32_t;
+#ifndef __x86_64__
 typedef signed long long int64_t;
+#endif
 
 #define INT8_MIN		(-128)
 #define INT16_MIN		(-32767-1)
Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.61
diff -u -r1.61 vl.c
--- vl.c	22 Apr 2004 00:35:09 -0000	1.61
+++ vl.c	25 Apr 2004 15:30:53 -0000
@@ -353,7 +353,7 @@
     return ((int64_t)h << 32) | l;
 }
 
-#elif defined(__i386__)
+#elif defined(__i386__) || defined(__x86_64__)
 
 int64_t cpu_get_real_ticks(void)
 {

             reply	other threads:[~2004-04-25 15:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-25 15:32 Martin Garton [this message]
2004-04-25 16:07 ` [Qemu-devel] amd64 compile J. Mayer
2004-04-25 16:23   ` Martin Garton
2004-04-25 18:20     ` J. Mayer
2004-04-25 18:40       ` J. Mayer
2004-04-25 19:02         ` Fabrice Bellard
2004-04-25 19:46           ` J. Mayer
2004-04-25 17:46   ` [Qemu-devel] " Gabriel Ebner
2004-04-25 18:09     ` J. Mayer
2004-04-25 18:38       ` [Qemu-devel] " Gabriel Ebner
2004-04-25 18:52         ` J. Mayer

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=Pine.LNX.4.44.0404251628150.31437-200000@wrasse.demon.co.uk \
    --to=martin@wrasse.demon.co.uk \
    --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).