From: Peter Maydell <peter.maydell@linaro.org>
To: Laurent Vivier <laurent@vivier.eu>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Riku Voipio <riku.voipio@iki.fi>
Subject: Re: [Qemu-devel] [PATCH for 2.13 1/5] linux-user: cleanup signal.c
Date: Fri, 23 Mar 2018 17:01:02 +0000 [thread overview]
Message-ID: <CAFEAcA-MYNp_M+2JJ60QBkPPEvfrr43aj84GEGQLeD75TNi0mg@mail.gmail.com> (raw)
In-Reply-To: <408d4186-805c-47b1-7718-9cfc1455aa35@vivier.eu>
On 23 March 2018 at 16:51, Laurent Vivier <laurent@vivier.eu> wrote:
> Le 23/03/2018 à 15:22, Peter Maydell a écrit :
>> On 22 March 2018 at 21:58, Laurent Vivier <laurent@vivier.eu> wrote:
>>> move all target specific parts to
>>> signal.inc.c in arch directory
>>>
>>> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
>>> ---
>>> linux-user/aarch64/signal.inc.c | 556 +++
>>> linux-user/alpha/signal.inc.c | 258 ++
>>> linux-user/arm/signal.inc.c | 749 +++++
>>> linux-user/cris/signal.inc.c | 166 +
>>> linux-user/hppa/signal.inc.c | 188 ++
>>> linux-user/i386/signal.inc.c | 579 ++++
>>> linux-user/m68k/signal.inc.c | 406 +++
>>> linux-user/microblaze/signal.inc.c | 226 ++
>>> linux-user/mips/signal.inc.c | 378 +++
>>> linux-user/mips64/signal.inc.c | 1 +
>>> linux-user/nios2/signal.inc.c | 232 ++
>>> linux-user/openrisc/signal.inc.c | 209 ++
>>> linux-user/ppc/signal.inc.c | 667 ++++
>>> linux-user/riscv/signal.inc.c | 196 ++
>>> linux-user/s390x/signal.inc.c | 305 ++
>>> linux-user/sh4/signal.inc.c | 327 ++
>>> linux-user/signal.c | 6487 +-----------------------------------
>>> linux-user/sparc/signal.inc.c | 601 ++++
>>> linux-user/sparc64/signal.inc.c | 1 +
>>> linux-user/tilegx/signal.inc.c | 163 +
>>> linux-user/x86_64/signal.inc.c | 1 +
>>> linux-user/xtensa/signal.inc.c | 253 ++
>>> 22 files changed, 6463 insertions(+), 6486 deletions(-)
>>
>> I think anything with a diffstat like this is basically
>> unreviewable, at least for me :-(
>>
>>> diff --git a/linux-user/aarch64/signal.inc.c b/linux-user/aarch64/signal.inc.c
>>> new file mode 100644
>>> index 0000000000..28fa0f2f22
>>> --- /dev/null
>>> +++ b/linux-user/aarch64/signal.inc.c
>>
>> I was hoping we could have these be standalone .c files,
>> rather than just #included from linux-user/signal.c.
>> I appreciate this requires a bit more teasing out of what
>> needs to become non-static in the common code signal.c
>> to be callable from the per-target code, though.
>>
>
> Thank you for your review.
>
> I tried the easy way first... but I'm going to try to do standalone c files.
Structuring your patchset so it can move one architecture
at a time out ouf the common file will probably help
in making the patch more reviewable, though it's likely
a bit more painful to do.
I think at the time I was looking at this I was contemplating
an approach like:
(1) for architecture A, move that arch's code from signal.c
to $ARCH/signal.c, and temporarily use a #include to
include it from signal.c
(2) repeat for architectures B, C, ..., one per patch
(3) make the makefile and code changes needed to
drop the #includes and build $ARCH/signal.c as
standalone files, as a final patch
and note in the commit messages for the 1, 2... patches
that they're purely code movement with no textual changes.
thanks
-- PMM
next prev parent reply other threads:[~2018-03-23 17:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-22 21:58 [Qemu-devel] [PATCH for 2.13 0/5] linux-user: move arch specific parts to arch directories Laurent Vivier
2018-03-22 21:58 ` [Qemu-devel] [PATCH for 2.13 1/5] linux-user: cleanup signal.c Laurent Vivier
2018-03-23 14:22 ` Peter Maydell
2018-03-23 16:51 ` Laurent Vivier
2018-03-23 17:01 ` Peter Maydell [this message]
2018-03-22 21:58 ` [Qemu-devel] [PATCH for 2.13 2/5] linux-user: remove unneeded #ifdef in signal.c Laurent Vivier
2018-03-23 14:15 ` Peter Maydell
2018-03-22 21:58 ` [Qemu-devel] [PATCH for 2.13 3/5] linux-user: define TARGET_ARCH_HAS_SETUP_FRAME Laurent Vivier
2018-03-23 14:17 ` Peter Maydell
2018-03-22 21:58 ` [Qemu-devel] [PATCH for 2.13 4/5] linux-user: cleanup cpu_loop() Laurent Vivier
2018-03-23 2:21 ` Philippe Mathieu-Daudé
2018-03-22 21:58 ` [Qemu-devel] [PATCH for 2.13 5/5] linux-user: cleanup main() Laurent Vivier
2018-03-23 2:18 ` Philippe Mathieu-Daudé
2018-03-23 0:59 ` [Qemu-devel] [PATCH for 2.13 0/5] linux-user: move arch specific parts to arch directories no-reply
2018-03-23 9:43 ` Peter Maydell
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=CAFEAcA-MYNp_M+2JJ60QBkPPEvfrr43aj84GEGQLeD75TNi0mg@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/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).