From: "J. Mayer" <l_indien@magic.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PPC emulation, how?
Date: Sun, 18 Apr 2004 21:51:10 +0200 [thread overview]
Message-ID: <1082317870.28998.22.camel@rapid> (raw)
In-Reply-To: <1082137461.24066.376.camel@jma1.dev.netgem.com>
On Fri, 2004-04-16 at 19:44, Jocelyn Mayer wrote:
> Hi, sorry for the delay...
>
> > I tried your kernel image and debian install disk.
> > It does boot but I can't get networking to work
> > I can set the eth0 of the emulated client to 172.20.0.2 but am unable to
> > ping the host (which is setup at 172.20.0.1 by /etc/qemu-ifup.sh) or the
> > other way around.
> > Is networking not working at all yet or am I missing something
> >
>
> It may not work: I didn't really test the network, just made sure that
> the NE2000 was seen by the kernel. PPC system emulation is still very
> experimental...
Here's a little patch in NE2000 emulation that makes network available
for PPC:
I can now ping my host machine, but failed to mount nfs exports...
Index: hw/ne2000.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/ne2000.c,v
retrieving revision 1.5
diff -u -d -w -B -b -d -p -r1.5 ne2000.c
--- hw/ne2000.c 12 Apr 2004 20:39:29 -0000 1.5
+++ hw/ne2000.c 18 Apr 2004 19:47:23 -0000
@@ -368,8 +368,13 @@ static void ne2000_asic_ioport_write(voi
p = s->mem + s->rsar;
if (s->dcfg & 0x01) {
/* 16 bit access */
+#ifdef TARGET_WORDS_BIGENDIAN
+ p[1] = val;
+ p[0] = val >> 8;
+#else
p[0] = val;
p[1] = val >> 8;
+#endif
s->rsar += 2;
s->rcnt -= 2;
} else {
@@ -397,7 +402,11 @@ static uint32_t ne2000_asic_ioport_read(
p = s->mem + s->rsar;
if (s->dcfg & 0x01) {
/* 16 bit access */
+#ifdef TARGET_WORDS_BIGENDIAN
+ ret = p[1] | (p[0] << 8);
+#else
ret = p[0] | (p[1] << 8);
+#endif
s->rsar += 2;
s->rcnt -= 2;
} else {
--
J. Mayer <l_indien@magic.fr>
Never organized
next prev parent reply other threads:[~2004-04-18 19:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-13 18:08 [Qemu-devel] PPC emulation, how? Francisco José Cañizares Santofimia
2004-04-13 18:56 ` Jocelyn Mayer
2004-04-14 14:25 ` Martin
2004-04-16 17:44 ` Jocelyn Mayer
2004-04-18 19:51 ` J. Mayer [this message]
2004-04-19 18:05 ` Martin
2004-04-19 18:34 ` Karel Gardas
[not found] ` <40830EDD.9080505@olifantasia.com>
[not found] ` <1082363002.29001.41.camel@rapid>
2004-04-19 18:12 ` Martin
2004-04-19 21:16 ` J. Mayer
2004-04-19 22:41 ` Carlos Valiente
2004-04-20 23:26 ` Martin
2004-04-21 0:34 ` 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=1082317870.28998.22.camel@rapid \
--to=l_indien@magic.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.