From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Tony Nguyen <tony.nguyen@bt.com>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Andrew Jeffery" <andrew@aj.id.au>,
"Alistair Francis" <alistair@alistair23.me>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
"KONRAD Frederic" <frederic.konrad@adacore.com>,
"Fabien Chouteau" <chouteau@adacore.com>,
"Subbaraya Sundeep" <sundeep.lkml@gmail.com>,
"Michael Walle" <michael@walle.cc>,
qemu-arm@nongnu.org, "Peter Chubb" <peter.chubb@nicta.com.au>,
"Joel Stanley" <joel@jms.id.au>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Guan Xuetao" <gxt@mprc.pku.edu.cn>,
"Artyom Tarasenko" <atar4qemu@gmail.com>,
"Cédric Le Goater" <clg@kaod.org>
Subject: Re: [Qemu-devel] [PATCH 18/19] hw/timer: Declare device little or big endian
Date: Wed, 2 Oct 2019 13:17:09 +0200 [thread overview]
Message-ID: <8c66b0cd-f4ee-0b5f-fd1c-e843cae09e48@redhat.com> (raw)
In-Reply-To: <9fde52f9085bd7ad607bf2372931178e4a01fabd.1566829168.git.tony.nguyen@bt.com>
On 8/26/19 4:21 PM, Tony Nguyen wrote:
> For each device declared with DEVICE_NATIVE_ENDIAN, find the set of
> targets from the set of target/hw/*/device.o.
>
> If the set of targets are all little or all big endian, re-declare
> as DEVICE_LITTLE_ENDIAN or DEVICE_BIG_ENDIAN respectively.
>
> Then, on inspection:
> - if not used, re-declare as DEVICE_HOST_ENDIAN.
> - if max/min size=1, re-declare as DEVICE_HOST_ENDIAN.
> - if just a bit bucket, re-declare as DEVICE_HOST_ENDIAN
> - if PCI, re-declare as DEVICE_LITTLE_ENDIAN.
> - if for {ARM|unicore32} only, re-declare as DEVICE_LITTLE_ENDIAN.
> - if for SPARC only, re-declare as DEVICE_BIG_ENDIAN.
>
> Signed-off-by: Tony Nguyen <tony.nguyen@bt.com>
> ---
> hw/timer/a9gtimer.c | 4 ++--
> hw/timer/arm_mptimer.c | 4 ++--
> hw/timer/arm_timer.c | 4 ++--
> hw/timer/armv7m_systick.c | 2 +-
> hw/timer/aspeed_rtc.c | 2 +-
> hw/timer/cadence_ttc.c | 2 +-
> hw/timer/grlib_gptimer.c | 2 +-
> hw/timer/hpet.c | 2 +-
> hw/timer/imx_epit.c | 2 +-
> hw/timer/imx_gpt.c | 2 +-
> hw/timer/lm32_timer.c | 2 +-
> hw/timer/milkymist-sysctl.c | 2 +-
> hw/timer/mss-timer.c | 2 +-
> hw/timer/pl031.c | 2 +-
> hw/timer/puv3_ost.c | 2 +-
> hw/timer/slavio_timer.c | 2 +-
> hw/timer/stm32f2xx_timer.c | 2 +-
> hw/timer/sun4v-rtc.c | 2 +-
This patch affects various areas, maybe it is worth splitting in at
least big/little changes? Or 3: ARM first, then big/little.
[...]
next prev parent reply other threads:[~2019-10-02 11:18 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-26 14:21 [Qemu-devel] [PATCH 00/19] Declare device little or big endian Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 01/19] hw/audio: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 02/19] hw/block: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 03/19] hw/char: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 04/19] hw/core: " Tony Nguyen
2019-10-02 11:34 ` Philippe Mathieu-Daudé
2019-08-26 14:21 ` [Qemu-devel] [PATCH 05/19] hw/display: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 06/19] hw/dma: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 07/19] hw/gpio: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 08/19] hw/i2c: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 09/19] hw/input: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 10/19] hw/intc: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 11/19] hw/ipack: " Tony Nguyen
2019-10-01 13:14 ` Alberto Garcia
2019-08-26 14:21 ` [Qemu-devel] [PATCH 12/19] hw/isa: " Tony Nguyen
2019-10-02 11:31 ` Philippe Mathieu-Daudé
2019-08-26 14:21 ` [Qemu-devel] [PATCH 13/19] hw/misc: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 14/19] hw/net: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 15/19] hw/pci-host: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 16/19] hw/sd: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 17/19] hw/ssi: " Tony Nguyen
2019-08-26 14:21 ` [Qemu-devel] [PATCH 18/19] hw/timer: " Tony Nguyen
2019-10-02 11:17 ` Philippe Mathieu-Daudé [this message]
2019-08-26 14:21 ` [Qemu-devel] [PATCH 19/19] build: Correct non-common common-obj-* to obj-* Tony Nguyen
2019-10-02 11:42 ` [Qemu-devel] [PATCH 00/19] Declare device little or big endian Philippe Mathieu-Daudé
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=8c66b0cd-f4ee-0b5f-fd1c-e843cae09e48@redhat.com \
--to=philmd@redhat.com \
--cc=alistair@alistair23.me \
--cc=andrew@aj.id.au \
--cc=atar4qemu@gmail.com \
--cc=chouteau@adacore.com \
--cc=clg@kaod.org \
--cc=edgar.iglesias@gmail.com \
--cc=frederic.konrad@adacore.com \
--cc=gxt@mprc.pku.edu.cn \
--cc=joel@jms.id.au \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=michael@walle.cc \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.chubb@nicta.com.au \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sundeep.lkml@gmail.com \
--cc=tony.nguyen@bt.com \
/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).