AMD64 Gentoo needs help
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!
Quoted 39 lines · jmf
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 -pciQEMU 0.6.0 monitor - type 'help' for more information
(qemu) Segmentation fault
$ linux32 qemu -hda netbsd_1.6.2.img -m 128 -pciQEMU 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
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 3 lines
"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.
Quoted 2 lines · jmf
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.
Quoted 2 lines · Martin Garton
On Thu, 23 Sep 2004, jmf wrote:
Hi,
Quoted 8 lines
Quoted 2 lines
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.
Quoted 4 lines
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.
Signature · 2 lines
J. Mayer <[email protected]> Never organized
Hi,
Quoted 7 lines · J. Mayer
Quoted 5 lines · Martin Garton
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.
Quoted 7 lines
[...]
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
Quoted 4 lines · Johannes Schindelin
If this is an issue, then maybe you two could put your respective
i386-softemu/op.osomewhere 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.
Quoted 3 lines · J. Mayer
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.
32-bit statically compiled qemu is working perfectly here outside the chroot. Did you have any problems with that setup because you had to _run_ qemu inside the chroot?
Gabriel.
Quoted 9 lines · Martin Garton
Quoted 2 lines · jmf
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line · Paul Brook
Doesn't Gentoo use gcc3.4?
qemu doesn't even compile with gcc-3.4 (gcc segfaults). I filed a bug at gcc.gnu.org, so it should get fixed somewhen.
Gabriel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBVT4Fja6QLvw1CaARAgavAJwM2PbQLiE+TxWl0Wrg4tHySG79gACggat9 ywCAILiJKa6G5bPUlJ5U+lw=
=HEiu
-----END PGP SIGNATURE-----