* [Qemu-devel] AMD64 Gentoo needs help
@ 2004-09-23 13:46 jmf
2004-09-23 15:50 ` Paul Brook
2004-09-23 16:49 ` Andrew Wilkinson
0 siblings, 2 replies; 11+ messages in thread
From: jmf @ 2004-09-23 13:46 UTC (permalink / raw)
To: qemu-devel
I'm using gcc 3.3.4 on Gentoo for AMD64 ( kernel 2.6.9_rc1 ), which built qemu with out problems. Then I downloaded the netbsd image from FreeOSZoo and followed the README instructions, which say to run qemu like this
qemu -hda netbsd_1.6.2.img -m 128 -pci
in the Gentoo port ( I don't know about others ), there is no qemu binary but, there is a qemu-i386 binary so I made three attempts to run qemu:
$ qemu-i386 -hda netbsd_1.6.2.img -m 128 -pci
qemu-i386 version 0.6.0, Copyright (c) 2003-2004 Fabrice Bellard
usage: qemu-i386 [-h] [-d opts] [-L path] [-s size] program [arguments...]
Linux CPU emulator (compiled for i386 emulation)
-h print this help
-L path set the elf interpreter prefix (default=/usr/gnemul/qemu-i386)
-s size set the stack size in bytes (default=524288)
debug options:
-d options activate log (logfile=/tmp/qemu.log)
-p pagesize set the host page size to 'pagesize'
$ qemu-i386 netbsd_1.6.2.img
Error loading netbsd_1.6.2.img
$ linux32 qemu-i386 -hda netbsd_1.6.2.img -m 128 -pci
( same usage message as above )
How do I run qemu with this image ?
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-23 13:46 [Qemu-devel] AMD64 Gentoo needs help jmf
@ 2004-09-23 15:50 ` Paul Brook
2004-09-23 16:49 ` Andrew Wilkinson
1 sibling, 0 replies; 11+ messages in thread
From: Paul Brook @ 2004-09-23 15:50 UTC (permalink / raw)
To: qemu-devel, jmfguy
On Thursday 23 September 2004 14:46, jmf wrote:
> I'm using gcc 3.3.4 on Gentoo for AMD64 ( kernel 2.6.9_rc1 ), which built
> qemu with out problems. Then I downloaded the netbsd image from FreeOSZoo
> and followed the README instructions, which say to run qemu like this
>
>
>
> qemu -hda netbsd_1.6.2.img -m 128 -pci
>
>
>
> in the Gentoo port ( I don't know about others ), there is no qemu binary
> but, there is a qemu-i386 binary so I made three attempts to run qemu:
qemu-386 is the linux usermode emulator. It sounds like you should be using
the full system (aka softmmu) emulator.
Paul
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-23 13:46 [Qemu-devel] AMD64 Gentoo needs help jmf
2004-09-23 15:50 ` Paul Brook
@ 2004-09-23 16:49 ` Andrew Wilkinson
1 sibling, 0 replies; 11+ messages in thread
From: Andrew Wilkinson @ 2004-09-23 16:49 UTC (permalink / raw)
To: jmfguy, qemu-devel
On Thu, 23 Sep 2004 09:46:25 -0400 (EDT), jmf <jmfguy@excite.com> wrote:
> I'm using gcc 3.3.4 on Gentoo for AMD64 ( kernel 2.6.9_rc1 ), which built qemu with out problems. Then I downloaded the netbsd image from FreeOSZoo and followed the README instructions, which say to run qemu like this
>
> qemu -hda netbsd_1.6.2.img -m 128 -pci
Try USE="softmmu" emerge qemu.
HTH,
Andrew
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
@ 2004-09-23 19:36 jmf
2004-09-23 20:16 ` Martin Garton
2004-09-23 20:21 ` Martin Garton
0 siblings, 2 replies; 11+ messages in thread
From: jmf @ 2004-09-23 19:36 UTC (permalink / raw)
To: andrewjwilkinson, qemu-devel
Try USE="softmmu" emerge qemu
I treid that and before the segfault below happen, now a black window appears and dissappears very quickly
$ qemu -hda netbsd_1.6.2.img -m 128 -pci
QEMU 0.6.0 monitor - type 'help' for more information
(qemu) Segmentation fault
$ linux32 qemu -hda netbsd_1.6.2.img -m 128 -pci
QEMU 0.6.0 monitor - type 'help' for more information
(qemu) Segmentation fault
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-23 19:36 jmf
@ 2004-09-23 20:16 ` Martin Garton
2004-09-23 20:21 ` Martin Garton
1 sibling, 0 replies; 11+ messages in thread
From: Martin Garton @ 2004-09-23 20:16 UTC (permalink / raw)
To: jmfguy, qemu-devel
On Thu, 23 Sep 2004, jmf wrote:
>
>
>
> Try USE="softmmu" emerge qemu
>
>
>
> I treid that and before the segfault below happen, now a black window appears and dissappears very quickly
>
>
>
> $ qemu -hda netbsd_1.6.2.img -m 128 -pci
>
> QEMU 0.6.0 monitor - type 'help' for more information
>
> (qemu) Segmentation fault
>
>
>
> $ linux32 qemu -hda netbsd_1.6.2.img -m 128 -pci
>
> QEMU 0.6.0 monitor - type 'help' for more information
>
> (qemu) Segmentation fault
>
>
>
>
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
--
"it is important that we do not pretend that an entitlement card would be
an overwhelming factor in combating international terrorism" - David
Blunkett 3 July 2002.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-23 19:36 jmf
2004-09-23 20:16 ` Martin Garton
@ 2004-09-23 20:21 ` Martin Garton
2004-09-23 21:06 ` J. Mayer
2004-09-23 21:30 ` Paul Brook
1 sibling, 2 replies; 11+ messages in thread
From: Martin Garton @ 2004-09-23 20:21 UTC (permalink / raw)
To: jmfguy, qemu-devel
On Thu, 23 Sep 2004, jmf wrote:
> I treid that and before the segfault below happen, now a black window
> appears and dissappears very quickly
I believe the problem is that qemu is not 64bit clean code because it does
things like casting from pointers to ints and back which is okay when they
are the same size (ie, on x86) but not when a pointer is twice as long as
an int (ie, on amd64) You will have seen warnings about this when
compiling.
I looked at the code with a view to making it amd64 friendly, but I'm out
of my depth. If someone wants to give me some hints I might find some
time to have another look though.
Regards,
Martin.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-23 20:21 ` Martin Garton
@ 2004-09-23 21:06 ` J. Mayer
2004-09-24 9:46 ` Johannes Schindelin
2004-09-23 21:30 ` Paul Brook
1 sibling, 1 reply; 11+ messages in thread
From: J. Mayer @ 2004-09-23 21:06 UTC (permalink / raw)
To: qemu-devel
On Thu, 2004-09-23 at 22:21, Martin Garton wrote:
> On Thu, 23 Sep 2004, jmf wrote:
>
Hi,
> > I treid that and before the segfault below happen, now a black window
> > appears and dissappears very quickly
>
> I believe the problem is that qemu is not 64bit clean code because it does
> things like casting from pointers to ints and back which is okay when they
> are the same size (ie, on x86) but not when a pointer is twice as long as
> an int (ie, on amd64) You will have seen warnings about this when
> compiling.
You may like to know that the ppc emulation runs well on amd64. A lots
of 64 bits cleanup have already been made. The warning you get during
compilation (should) concern only addresses in the emulated environment.
As qemu only emulates 32 bits machines for now, it's not a real issue.
The only way I ever succeeded running qemu-x86 on amd64 is to compile
and execute it into a 32 bits chrooted environment: I got a full 32 bits
gentoo into a separate partition to achieve this.
>
> I looked at the code with a view to making it amd64 friendly, but I'm out
> of my depth. If someone wants to give me some hints I might find some
> time to have another look though.
I think the issues may be located in or very near the x86 emulation
code. I never had the courage to compare step by step the execution in
the 32 bits vs the 64 bits environment to find where is the bug, but I
really think there is just a few bugs to locate and fix.
Regards.
--
J. Mayer <l_indien@magic.fr>
Never organized
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-23 20:21 ` Martin Garton
2004-09-23 21:06 ` J. Mayer
@ 2004-09-23 21:30 ` Paul Brook
1 sibling, 0 replies; 11+ messages in thread
From: Paul Brook @ 2004-09-23 21:30 UTC (permalink / raw)
To: qemu-devel
On Thursday 23 September 2004 21:21, Martin Garton wrote:
> On Thu, 23 Sep 2004, jmf wrote:
> > I treid that and before the segfault below happen, now a black window
> > appears and dissappears very quickly
>
> I believe the problem is that qemu is not 64bit clean code because it does
> things like casting from pointers to ints and back which is okay when they
> are the same size (ie, on x86) but not when a pointer is twice as long as
> an int (ie, on amd64) You will have seen warnings about this when
> compiling.
Doesn't Gentoo use gcc3.4?
If so I'd guess it's more likely that this is the problem. gcc3.4 performs
optimizations that break assumptions in the dyngen code.
Paul
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
@ 2004-09-23 21:56 jmf
0 siblings, 0 replies; 11+ messages in thread
From: jmf @ 2004-09-23 21:56 UTC (permalink / raw)
To: paul, qemu-devel
--- On Thu 09/23, Paul Brook < paul@codesourcery.com > wrote:
Doesn't Gentoo use gcc3.4? f so I'd guess it's more likely that this is the problem. gcc3.4 performs optimizations that break assumptions in the dyngen code.
not unless you upgrade to gcc3.4, which I have not. I'm using gcc 3.3.4
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-23 21:06 ` J. Mayer
@ 2004-09-24 9:46 ` Johannes Schindelin
2004-09-25 9:23 ` Martin Garton
0 siblings, 1 reply; 11+ messages in thread
From: Johannes Schindelin @ 2004-09-24 9:46 UTC (permalink / raw)
To: qemu-devel
Hi,
On Thu, 23 Sep 2004, J. Mayer wrote:
> On Thu, 2004-09-23 at 22:21, Martin Garton wrote:
> > I believe the problem is that qemu is not 64bit clean code because it does
> > things like casting from pointers to ints and back which is okay when they
> > are the same size (ie, on x86) but not when a pointer is twice as long as
> > an int (ie, on amd64) You will have seen warnings about this when
> > compiling.
>
> [...]
>
> I think the issues may be located in or very near the x86 emulation
> code. I never had the courage to compare step by step the execution in
> the 32 bits vs the 64 bits environment to find where is the bug, but I
> really think there is just a few bugs to locate and fix.
>
If this is an issue, then maybe you two could put your respective
i386-softemu/op.o somewhere on the web, so someone poor like me - who
cannot afford such a lovely 64-bit beast - can look at it (after all, the
GNU binutils are cross platform)?
Ciao,
Dscho
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] AMD64 Gentoo needs help
2004-09-24 9:46 ` Johannes Schindelin
@ 2004-09-25 9:23 ` Martin Garton
0 siblings, 0 replies; 11+ messages in thread
From: Martin Garton @ 2004-09-25 9:23 UTC (permalink / raw)
To: qemu-devel
On Fri, 24 Sep 2004, Johannes Schindelin wrote:
> If this is an issue, then maybe you two could put your respective
> i386-softemu/op.o somewhere on the web, so someone poor like me - who
> cannot afford such a lovely 64-bit beast - can look at it (after all, the
> GNU binutils are cross platform)?
I have put i386-softemu/op.o at
http://wrasse.demon.co.uk/~martin/temp/op.o
Regards,
Martin.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-09-25 9:38 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-23 13:46 [Qemu-devel] AMD64 Gentoo needs help jmf
2004-09-23 15:50 ` Paul Brook
2004-09-23 16:49 ` Andrew Wilkinson
-- strict thread matches above, loose matches on Subject: below --
2004-09-23 19:36 jmf
2004-09-23 20:16 ` Martin Garton
2004-09-23 20:21 ` Martin Garton
2004-09-23 21:06 ` J. Mayer
2004-09-24 9:46 ` Johannes Schindelin
2004-09-25 9:23 ` Martin Garton
2004-09-23 21:30 ` Paul Brook
2004-09-23 21:56 jmf
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).