From: David Gibson <david@gibson.dropbear.id.au>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: Cedric Le Goater <clg@kaod.org>,
qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH v6 4/5] ppc440_uc: Basic emulation of PPC440 DMA controller
Date: Mon, 2 Jul 2018 10:03:31 +1000 [thread overview]
Message-ID: <20180702000331.GQ3422@umbus.fritz.box> (raw)
In-Reply-To: <alpine.BSF.2.21.1806291410520.18342@zero.eik.bme.hu>
[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]
On Fri, Jun 29, 2018 at 02:14:49PM +0200, BALATON Zoltan wrote:
> On Fri, 29 Jun 2018, David Gibson wrote:
> > On Fri, Jun 29, 2018 at 02:48:40PM +1000, David Gibson wrote:
> > > On Fri, Jun 29, 2018 at 12:38:33AM +0200, BALATON Zoltan wrote:
> > > > PPC440 SoCs such as the AMCC 460EX have a DMA controller which is used
> > > > by AmigaOS on the sam460ex. Implement the parts used by AmigaOS so it
> > > > can get further booting on the sam460ex machine.
> > > >
> > > > Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> > > > ---
> > > > v6:
> > > > - CamelCase type names
> > > > - Check return value of cpu_physical_memory_map
> > >
> > > I don't really have the knowledge to review this, but since it's a new
> > > device that no-one else is using, I've applied it.
> >
> > I take that back. This breaks compile for me with:
> >
> > CC ppc-softmmu/hw/ppc/ppc440_uc.o
> > /home/dwg/src/qemu/hw/ppc/ppc440_uc.c: In function ‘dcr_write_dma’:
> > /home/dwg/src/qemu/hw/ppc/ppc440_uc.c:907:35: error: ‘sidx’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> > int width, i, sidx, didx;
> > ^~~~
> > /home/dwg/src/qemu/hw/ppc/ppc440_uc.c:935:25: error: ‘didx’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> > cpu_physical_memory_unmap(wptr, wlen, 1, didx);
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > gcc 8.1.1 on Fedora 28.
>
> Sorry, this was introduced in v6 when trying to handle return values from
> cpu_physical_memory_map. I've sent a v7 of just this patch that should fix
> this.
>
> There was also a 5/5 in this series which is useful even by itself without
> the OpenBIOS patch as it allows MorphOS to get further on sam460ex even if
> it's not booting yet. Just let you know, that it's not tied to the OpenBIOS
> change in case this wasn't clear from the commit message.
Right. I haven't forgotten it, I just hadn't yet found time to
research the change a bit more thorougly.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-07-02 0:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-28 22:38 [Qemu-devel] [PATCH v6 0/5] Misc sam460ex improvements BALATON Zoltan
2018-06-28 22:38 ` [Qemu-devel] [PATCH v6 3/5] sam460ex: Add RTC device BALATON Zoltan
2018-06-29 4:47 ` David Gibson
2018-07-02 4:04 ` David Gibson
2018-06-28 22:38 ` [Qemu-devel] [PATCH v6 4/5] ppc440_uc: Basic emulation of PPC440 DMA controller BALATON Zoltan
2018-06-29 4:48 ` David Gibson
2018-06-29 4:59 ` David Gibson
2018-06-29 12:14 ` [Qemu-devel] [Qemu-ppc] " BALATON Zoltan
2018-07-02 0:03 ` David Gibson [this message]
2018-06-28 22:38 ` [Qemu-devel] [PATCH v6 1/5] ppc4xx_i2c: Rewrite to model hardware more closely BALATON Zoltan
2018-06-28 22:38 ` [Qemu-devel] [PATCH v6 2/5] hw/timer: Add basic M41T80 emulation BALATON Zoltan
2018-06-28 22:38 ` [Qemu-devel] [PATCH v6 5/5] target/ppc: Relax reserved bitmask of indexed store instructions BALATON Zoltan
2018-07-03 1:13 ` [Qemu-devel] [Qemu-ppc] " David Gibson
2018-07-01 23:52 ` [Qemu-devel] [PATCH v6 0/5] Misc sam460ex improvements no-reply
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=20180702000331.GQ3422@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=balaton@eik.bme.hu \
--cc=clg@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).