From: "Bochnig, Martin" <mb1x@gmx.com>
To: fabrice.bellard@free.fr, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] sparc?
Date: Thu, 26 Aug 2004 12:46:02 +0200 [thread overview]
Message-ID: <412DBF6A.90207@gmx.com> (raw)
> 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
>
> Hi,
>
>
> 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.
>
> Fabrice.
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 QEMU@Solaris10_x86 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
SCSecA
SCNA
SCSA
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 ; \
done
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
PARTICULAR PURPOSE.
Report bugs to <bug-make@gnu.org>.
# THANX
next reply other threads:[~2004-08-26 10:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-26 10:46 Bochnig, Martin [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-26 11:06 [Qemu-devel] sparc? Bochnig, Martin
2004-08-26 22:11 ` Bochnig, Martin
2004-08-27 23:29 ` Bochnig, Martin
2004-08-27 23:34 ` Lennert Buytenhek
2004-08-27 23:58 ` Bochnig, Martin
2004-08-28 0:05 ` Lennert Buytenhek
2004-08-28 0:14 ` Bochnig, Martin
[not found] ` <413083B1.2040102@bellard.org>
2004-08-28 16:55 ` Bochnig, Martin
2004-08-29 14:26 ` Bochnig, Martin
2004-08-29 14:37 ` Johannes Schindelin
2004-08-29 14:53 ` Bochnig, Martin
2004-08-29 15:12 ` Bochnig, Martin
2004-08-31 22:22 ` Richard Zidlicky
2004-01-02 16:57 Yelich, Scott D.
2004-01-02 18:16 ` Fabrice Bellard
2004-01-02 20:48 ` NunO fELICIO
2004-01-02 21:49 ` Raymond W. Lucke IV
2004-01-02 23:01 ` Satadru Pramanik
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=412DBF6A.90207@gmx.com \
--to=mb1x@gmx.com \
--cc=bochnig@pool.math.tu-berlin.de \
--cc=fabrice.bellard@free.fr \
--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).