From: Richard Henderson <richard.henderson@linaro.org>
To: Aleksandar Markovic <aleksandar.m.mail@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Stefan Hajnoczi <stefanha@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Aleksandar Markovic <aleksandar.markovic@rt-rk.com>,
"amarkovic@wavecomp.com" <amarkovic@wavecomp.com>,
"aleksandar.rikalo@rt-rk.com" <aleksandar.rikalo@rt-rk.com>,
"aurelien@aurel32.net" <aurelien@aurel32.net>
Subject: Re: [PATCH v4 6/7] disas: mips: Add micromips R6 disassembler - infrastructure and 16-bit instructions
Date: Sat, 25 Jan 2020 08:06:40 -1000 [thread overview]
Message-ID: <c1b65e3f-ea37-ebca-e47e-1fb1a30df9f2@linaro.org> (raw)
In-Reply-To: <CAL1e-=gsX+_G28i3MbFn3qLW7YKyQapaAdEhpkCKtvwS6juHHQ@mail.gmail.com>
On 1/25/20 12:22 AM, Aleksandar Markovic wrote:
>
>
> On Saturday, January 25, 2020, Richard Henderson <richard.henderson@linaro.org
> <mailto:richard.henderson@linaro.org>> wrote:
>
> On 1/24/20 1:38 PM, Aleksandar Markovic wrote:
> > On Friday, January 24, 2020, Richard Henderson
> <richard.henderson@linaro.org <mailto:richard.henderson@linaro.org>
> > <mailto:richard.henderson@linaro.org
> <mailto:richard.henderson@linaro.org>>> wrote:
> > The thing I'm concerned about here is any future maintenance of this
> file. One
> > would surely prefer to edit the original decodetree input than this
> output.
> >
> >
> > Here is the deal: This dissasembler is meant to reflect the
> documentation of a
> > particular ISA, and as the documentation largely stays constant (except
> adding
> > some insignificant errata), the disassembler will stay virtually constant, we
> > wouldn't like even to touch it, and we like it this way.
>
> No, this is neither right nor proper.
>
> To review the code in this form is significantly harder than in its decodetree
> form. That is in fact the whole point of the decodetree form: otherwise we'd
> still be writing these sorts of parsers by hand.
>
> While there's no license on this new file (another problem), if as assumed this
> is GPL 2+, then you are in violation of the GPL. From section 3:
>
> # The source code for a work means the preferred form of
> # the work for making modifications to it.
>
> You cannot with a straight face claim that the generated c is the preferred
> form for making modifications.
>
> Finally, suppose we improve decodetree.py, so that it produces code with which
> the compiler produces better code, for some metric of better. We would want
> this disassembler to benefit as well.
>
>
> I think you got some things upside-down. A tool developent and usage should be
> driven by the needs of users of a tool, and not dictated by the author. Users
> should be free to use the tool in any way they seem suitable, including its
> modification.
That's exactly right, provided that by "tool" you mean QEMU and by "users" you
mean everyone downstream of us.
Let me state for the record that I object to this generated file being merged
in this form, for the reasons I stated above.
r~
next prev parent reply other threads:[~2020-01-25 18:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-24 16:38 [PATCH v4 0/7] target/mips: Misc MIPS fixes and improvements for 5.0 Aleksandar Markovic
2020-01-24 16:38 ` [PATCH v4 1/7] target/mips: Rectify documentation on deprecating r4k machine Aleksandar Markovic
2020-01-24 16:38 ` [PATCH v4 2/7] target/mips: Add support for MIPS<32|64>R6 CRC32 ISA Aleksandar Markovic
2020-01-24 16:38 ` [PATCH v4 3/7] target/mips: Amend CP0 WatchHi register implementation Aleksandar Markovic
2020-01-24 17:22 ` Aleksandar Rikalo
2020-01-24 16:38 ` [PATCH v4 4/7] target/mips: Add implementation of GINVT instruction Aleksandar Markovic
2020-01-24 17:23 ` Aleksandar Rikalo
2020-01-24 16:38 ` [PATCH v4 5/7] disas: Add a field for target-dependant data Aleksandar Markovic
2020-01-24 17:25 ` Aleksandar Rikalo
2020-01-24 16:38 ` [PATCH v4 6/7] disas: mips: Add micromips R6 disassembler - infrastructure and 16-bit instructions Aleksandar Markovic
2020-01-24 19:44 ` Richard Henderson
2020-01-24 20:56 ` Aleksandar Markovic
2020-01-24 21:03 ` Richard Henderson
2020-01-24 23:38 ` Aleksandar Markovic
2020-01-25 7:51 ` Richard Henderson
2020-01-25 10:22 ` Aleksandar Markovic
2020-01-25 18:06 ` Richard Henderson [this message]
2020-01-24 16:38 ` [PATCH v4 7/7] disas: mips: Add micromips R6 disassembler - 32-bit instructions Aleksandar Markovic
2020-01-24 17:04 ` [PATCH v4 0/7] target/mips: Misc MIPS fixes and improvements for 5.0 no-reply
2020-01-24 18:09 ` 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=c1b65e3f-ea37-ebca-e47e-1fb1a30df9f2@linaro.org \
--to=richard.henderson@linaro.org \
--cc=aleksandar.m.mail@gmail.com \
--cc=aleksandar.markovic@rt-rk.com \
--cc=aleksandar.rikalo@rt-rk.com \
--cc=amarkovic@wavecomp.com \
--cc=aurelien@aurel32.net \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).