From: Peter Maydell <peter.maydell@linaro.org>
To: Leon Alrae <leon.alrae@imgtec.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH 3/4] disas/mips: remove unused mips16_to_32_reg_map[]
Date: Fri, 12 Dec 2014 14:51:06 +0000 [thread overview]
Message-ID: <CAFEAcA-7rmcGS1R8ELM39ZY9SkvmVNeLYGVHBehSqqr249TwEQ@mail.gmail.com> (raw)
In-Reply-To: <548AFB94.3070800@imgtec.com>
On 12 December 2014 at 14:28, Leon Alrae <leon.alrae@imgtec.com> wrote:
> On 12/12/2014 12:25, Peter Maydell wrote:
>> On 12 December 2014 at 09:30, Leon Alrae <leon.alrae@imgtec.com> wrote:
>>> The array was "used" in a block of code which has never been enabled. Therefore
>>> removing the array as well as 700 lines of never used code.
>>
>> That's quite a lot to remove -- are you sure we're never going to want
>> to disassemble mips16 insns in future?
>
> I quickly tried to enable it but it doesn't seem to be complete. For
> example it requires "extern const struct mips_opcode mips16_opcodes[]"
> which isn't anywhere in the codebase. Moreover, according to the git
> blame it has always been disabled since 2005 thus in my opinion there is
> no point in keeping this code. I do want to disassemble mips16 insns, if
> someone has proper implementation I'm more than happy to include it.
The trouble (as you may be aware) is that the obvious choice for
an implementation is upstream binutils, except that is GPLv3
whereas we are stuck with the disassemblers from the last GPLv2
binutils release, for license compatibility reasons.
If you (by which I mean Imagination) contributed the MIPS
disassemblers to binutils in the first place then you may
be able to provide QEMU with a GPLv2 version (effectively
dual-licensing your own code). Ask your legal people for
advice :-)
Failing that, the best source for a mips16 disassembler is
going to be "fix the bugs in the currently disabled code we
have in the tree", in which case deleting it all would be
a backwards step...
thanks
-- PMM
next prev parent reply other threads:[~2014-12-12 14:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 9:29 [Qemu-devel] [PATCH 0/4] target-mips: fix warnings reported by clang Leon Alrae
2014-12-12 9:30 ` [Qemu-devel] [PATCH 1/4] target-mips: convert single case switch into if statement Leon Alrae
2014-12-12 12:25 ` Peter Maydell
2014-12-12 9:30 ` [Qemu-devel] [PATCH 2/4] disas/mips: remove unused mips_msa_control_names_numeric[32] Leon Alrae
2014-12-12 12:26 ` Peter Maydell
2014-12-12 9:30 ` [Qemu-devel] [PATCH 3/4] disas/mips: remove unused mips16_to_32_reg_map[] Leon Alrae
2014-12-12 12:25 ` Peter Maydell
2014-12-12 14:28 ` Leon Alrae
2014-12-12 14:51 ` Peter Maydell [this message]
2014-12-12 15:52 ` Leon Alrae
2014-12-12 15:53 ` Peter Maydell
2014-12-12 16:48 ` Leon Alrae
2014-12-12 9:30 ` [Qemu-devel] [PATCH 4/4] target-mips: remove excp_names[] from linux-user as it is unused Leon Alrae
2014-12-12 12:25 ` 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-7rmcGS1R8ELM39ZY9SkvmVNeLYGVHBehSqqr249TwEQ@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=aurelien@aurel32.net \
--cc=leon.alrae@imgtec.com \
--cc=qemu-devel@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).