[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] sparc?

From: Bochnig, Martin
Subject: Re: [Qemu-devel] sparc?
Date: Thu, 26 Aug 2004 12:46:02 +0200
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20030711

Re: [Qemu-devel] sparc?
From: Fabrice Bellard
Subject: Re: [Qemu-devel] sparc?
Date: Fri, 02 Jan 2004 19:16:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703


QEMU only works on sparc-linux. However, if someone gives me an access to a 
sparc/solaris workstation, I can try to make the system emulator work.


Hello Fabrice,
hi all,

Based on Erics patch at http://digitaleric.net/solaris.patch ,
I got QEMU 0.6.0 from http://fabrice.bellard.free.fr/qemu/qemu-0.6.0.tar.gz compiling and perfectly up and running on a Solaris_x86 10_60 host. Due to the version mismatch (patch vs QEMU 0.6.0) I had to apply it manually and vl.c required some tweaking.
The slirp subdirectory caused lots of compiletime errors.
I needed to configure with "./configure --disable-slirp".
If anyone is interested in the Solaris_x86 - ready tree, feel free to send me a mail requesting it. (for now) I plan to release a binary package in Solaris/SVR4-pkgadd package format on my personal university homepage soon, but I will have to check licensing issues first.

Since most of our machines are UltraSPARC based (only 1 PC), I was hoping I could compile that modified tree under Solaris9 SPARC. I edited [QEMU_ROOT]/configure (adjusted it to 'uname -p'for cpu detection) and the build process started real work, but failed on vl.c with "unsupported cpu" (see the end of this mail). I couldn't even find the strings 'SPARC' or 'sparc' in vl.c - while x86, ppc and so have a lot of specific code inside of it.
I rebooted in 32 bit mode but that didn't help.
I'm not (yet?) skilled enough to do such a port.
I wonder how QEMU is able to compile under Linux/SPARC32 based hosts w/o having SPARC related code inside of vl.c or did you use another source tree?

> QEMU only works on sparc-linux. However, if someone gives me an access to a sparc/solaris workstation, I can try to make the system emulator work.
If your offer is still valid (which would just be g*r*e*a*t), I'll come back to you on that, please send me your shipping address! While I don't have a real economical need to run QEMU on Solaris_SPARC [I use SunPCi and now address@hidden over the network :)) ] I would love to see it running. I will send you both an Ultra and an older 32bit SPARCstation as well as an appropriate Solaris admin media kit.
The license is free for noncommercial use.

Thank you all for QEMU,
best regards,

Martin Bochnig


Student of Maths at Technical University of Berlin, E.U.rope

Below the output I get:

# ./configure --disable-slirp
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0
C compiler        gcc
make              gmake
host CPU          sparc
host big endian   yes
target list       i386-softmmu
gprof enabled     yes
static build      no
SDL support       yes
SDL static link   yes
mingw32 support   no
# gmake
gcc -Wall -O2 -g -D_GNU_SOURCE -o dyngen dyngen.c
gcc -Wall -O2 -g -g -D_GNU_SOURCE -o qemu-mkcow qemu-mkcow.c
gcc -Wall -O2 -g -g -D_GNU_SOURCE -o vmdk2raw vmdk2raw.c
for d in i386-softmmu; do \
gmake -C $d all || exit 1 ; \
gmake[1]: Entering directory `/tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/i386-softmmu' gcc -Wall -O2 -g -fno-strict-aliasing -m32 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6 -I. -I/tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/target-i386 -I/tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0 -D_GNU_SOURCE -c -o vl.o /tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c /tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c:502:2: #error unsupported CPU /tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c: In function `cpu_get_ticks': /tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c:513: warning: implicit declaration of function `cpu_get_real_ticks' /tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c: In function `init_timers': /tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c:969: warning: label `use_itimer' defined but not used
/tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c: At top level:
/tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/vl.c:869: warning: `start_rtc_timer' defined but not used
gmake[1]: *** [vl.o] Error 1
gmake[1]: Leaving directory `/tmp/QEMU_SOLARIS_SPARC_HOST__tmp__TEST/0.6.0/qemu-0.6.0/i386-softmmu'
gmake: *** [all] Error 1
# uname -a
SunOS mb1x-s0 5.9 Generic sun4u sparc SUNW,UltraSPARC-IIi-Engine
# isainfo -v
64-bit sparcv9 applications
32-bit sparc applications
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.2
# gmake -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.9
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

Report bugs to <address@hidden>.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]