All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Crosthwaite <crosthwaitepeter@gmail.com>,
	Andrew Baumann <Andrew.Baumann@microsoft.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Stefan Weil" <sw@weilnetz.de>,
	"Grégory ESTRADE" <gregory.estrade@gmail.com>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	qemu-arm <qemu-arm@nongnu.org>
Subject: Re: [Qemu-arm] [PATCH 1/8] bcm2835_sbm: add BCM2835 mailboxes
Date: Wed, 23 Dec 2015 21:32:58 +0100	[thread overview]
Message-ID: <567B04FA.2030903@redhat.com> (raw)
In-Reply-To: <CAPokK=owo1JtwWzDneGm9b+xe708eRDLXDQGgvVm1kkSLMo-hg@mail.gmail.com>



On 22/12/2015 00:33, Peter Crosthwaite wrote:
>>> >>
>>> >> case 0x80..0x8c
>> >
>> > Woah! Is that standard C?
>> >
> Yes, its probably one of the more recent language standards though.
> QEMU does use to more modern features liberally.

It's actually "case 0x80 ... 0x8c:".

>> Notice that this file comes from Linux. I know it's not pretty, but
>> can we please keep it as-is, for comparison purposes? I'm not sure
>> there's much value in cleaning it up locally...
>
> It looks very autogenerated and seems pretty nasty on the repetition.
> 
> As implementers of the hardware, it is much rarer to need these
> repetitious defs than the software users on the other side. "Do
> something specific with CPU#3's Mbox#5" is going to appear in
> software, but hardware implementers generally don't have a choice to
> implement things specifically and it usually ends up being looped and
> the exploded defs are never used. If there are only a handful of
> genuinely single defs needed, can they be fished out?

I see your point and I'm definitely in favor of rewriting headers from
scratch when practical, but any cleanup made is a recipe for unwanted
changes and bugs, especially if the source is full of repetitions.

Paolo

WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Crosthwaite <crosthwaitepeter@gmail.com>,
	Andrew Baumann <Andrew.Baumann@microsoft.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Peter Crosthwaite" <crosthwaite.peter@gmail.com>,
	"Stefan Weil" <sw@weilnetz.de>,
	"Grégory ESTRADE" <gregory.estrade@gmail.com>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	qemu-arm <qemu-arm@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/8] bcm2835_sbm: add BCM2835 mailboxes
Date: Wed, 23 Dec 2015 21:32:58 +0100	[thread overview]
Message-ID: <567B04FA.2030903@redhat.com> (raw)
In-Reply-To: <CAPokK=owo1JtwWzDneGm9b+xe708eRDLXDQGgvVm1kkSLMo-hg@mail.gmail.com>



On 22/12/2015 00:33, Peter Crosthwaite wrote:
>>> >>
>>> >> case 0x80..0x8c
>> >
>> > Woah! Is that standard C?
>> >
> Yes, its probably one of the more recent language standards though.
> QEMU does use to more modern features liberally.

It's actually "case 0x80 ... 0x8c:".

>> Notice that this file comes from Linux. I know it's not pretty, but
>> can we please keep it as-is, for comparison purposes? I'm not sure
>> there's much value in cleaning it up locally...
>
> It looks very autogenerated and seems pretty nasty on the repetition.
> 
> As implementers of the hardware, it is much rarer to need these
> repetitious defs than the software users on the other side. "Do
> something specific with CPU#3's Mbox#5" is going to appear in
> software, but hardware implementers generally don't have a choice to
> implement things specifically and it usually ends up being looped and
> the exploded defs are never used. If there are only a handful of
> genuinely single defs needed, can they be fished out?

I see your point and I'm definitely in favor of rewriting headers from
scratch when practical, but any cleanup made is a recipe for unwanted
changes and bugs, especially if the source is full of repetitions.

Paolo

  parent reply	other threads:[~2015-12-23 20:33 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04  0:00 [Qemu-devel] [PATCH 0/8] Raspberry Pi 2 support Andrew Baumann
2015-12-04  0:00 ` Andrew Baumann
2015-12-04  0:29 ` [Qemu-arm] " Andrew Baumann
2015-12-04  0:29   ` [Qemu-devel] " Andrew Baumann
2015-12-04  6:01 ` [Qemu-devel] [PATCH 1/8] bcm2835_sbm: add BCM2835 mailboxes Andrew Baumann
2015-12-04  6:01   ` Andrew Baumann
2015-12-04  6:01   ` [Qemu-devel] [PATCH 2/8] bcm2835_property: add bcm2835 property channel Andrew Baumann
2015-12-04  6:01     ` Andrew Baumann
2015-12-04  6:01   ` [Qemu-arm] [PATCH 3/8] bcm2835_ic: add bcm2835 interrupt controller Andrew Baumann
2015-12-04  6:01     ` [Qemu-devel] " Andrew Baumann
2015-12-06  5:19     ` [Qemu-arm] " Peter Crosthwaite
2015-12-06  5:19       ` [Qemu-devel] " Peter Crosthwaite
2015-12-09  6:25       ` [Qemu-arm] " Andrew Baumann
2015-12-09  6:25         ` [Qemu-devel] " Andrew Baumann
2015-12-04  6:01   ` [Qemu-devel] [PATCH 4/8] bcm2835_emmc: add bcm2835 MMC/SD controller Andrew Baumann
2015-12-04  6:01     ` Andrew Baumann
2015-12-06  5:25     ` [Qemu-arm] " Peter Crosthwaite
2015-12-06  5:25       ` [Qemu-devel] " Peter Crosthwaite
2015-12-09  6:19       ` [Qemu-arm] " Andrew Baumann
2015-12-09  6:19         ` [Qemu-devel] " Andrew Baumann
2015-12-09  7:40         ` [Qemu-arm] " Peter Crosthwaite
2015-12-09  7:40           ` [Qemu-devel] " Peter Crosthwaite
2015-12-09 18:17           ` [Qemu-arm] " Andrew Baumann
2015-12-09 18:17             ` [Qemu-devel] " Andrew Baumann
2015-12-09 18:54             ` [Qemu-arm] " Peter Crosthwaite
2015-12-09 18:54               ` [Qemu-devel] " Peter Crosthwaite
2015-12-09 19:01               ` [Qemu-arm] " Andrew Baumann
2015-12-09 19:01                 ` [Qemu-devel] " Andrew Baumann
2015-12-09 21:01               ` [Qemu-arm] " Peter Maydell
2015-12-09 21:01                 ` [Qemu-devel] " Peter Maydell
2015-12-09 21:37                 ` Andrew Baumann
2015-12-09 21:38                 ` Peter Crosthwaite
2015-12-09 23:09               ` Kevin O'Connor
2015-12-04  6:01   ` [Qemu-arm] [PATCH 5/8] bcm2835_peripherals: add rollup device for bcm2835 peripherals Andrew Baumann
2015-12-04  6:01     ` [Qemu-devel] " Andrew Baumann
2015-12-04  6:01   ` [Qemu-devel] [PATCH 6/8] bcm2836_control: add bcm2836 ARM control logic Andrew Baumann
2015-12-04  6:01     ` Andrew Baumann
2015-12-04  6:01   ` [Qemu-arm] [PATCH 7/8] bcm2836: add bcm2836 soc device Andrew Baumann
2015-12-04  6:01     ` [Qemu-devel] " Andrew Baumann
2015-12-04  6:01   ` [Qemu-arm] [PATCH 8/8] raspi: add raspberry pi 2 machine Andrew Baumann
2015-12-04  6:01     ` [Qemu-devel] " Andrew Baumann
2015-12-07  6:36   ` [Qemu-devel] [PATCH 1/8] bcm2835_sbm: add BCM2835 mailboxes Peter Crosthwaite
2015-12-07 17:24     ` Andrew Baumann
2015-12-21 22:49   ` Peter Crosthwaite
2015-12-21 23:15     ` Andrew Baumann
2015-12-21 23:33       ` [Qemu-arm] " Peter Crosthwaite
2015-12-21 23:33         ` [Qemu-devel] " Peter Crosthwaite
2015-12-21 23:36         ` [Qemu-arm] " Grégory ESTRADE
2015-12-21 23:36           ` [Qemu-devel] " Grégory ESTRADE
2015-12-21 23:59         ` [Qemu-arm] " Andrew Baumann
2015-12-21 23:59           ` [Qemu-devel] " Andrew Baumann
2015-12-23 20:32         ` Paolo Bonzini [this message]
2015-12-23 20:32           ` Paolo Bonzini
2015-12-23 23:59           ` [Qemu-arm] " Peter Crosthwaite
2015-12-23 23:59             ` [Qemu-devel] " Peter Crosthwaite
2015-12-24  0:13             ` [Qemu-arm] " Andrew Baumann
2015-12-24  0:13               ` [Qemu-devel] " Andrew Baumann
2015-12-21 23:34       ` [Qemu-arm] " Grégory ESTRADE
2015-12-21 23:34         ` [Qemu-devel] " Grégory ESTRADE

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=567B04FA.2030903@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=Andrew.Baumann@microsoft.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=gregory.estrade@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.de \
    /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.