All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	qemu-devel@nongnu.org,
	"Richard Henderson" <richard.henderson@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	David Hildenbrand <david@redhat.com>,
	qemu-s390x@nongnu.org, qemu-arm@nongnu.org,
	Paolo Bonzini <pbonzini@redhat.com>,
	Christian Borntraeger <borntraeger@linux.ibm.com>
Subject: Re: [RFC PATCH 0/3] Remove some of the old libopcode based disassemblers
Date: Mon, 9 May 2022 15:18:44 +0200	[thread overview]
Message-ID: <a8a7b68e-6fb9-e329-5c88-99a1fa5da75b@redhat.com> (raw)
In-Reply-To: <2af15d6d-ad10-2f98-fb0a-37d0125044ca@amsat.org>

On 09/05/2022 14.20, Philippe Mathieu-Daudé wrote:
> On 12/4/22 18:58, Thomas Huth wrote:
>> Many of the disassemblers in the disas folder are based on old
>> versions from the GNU tools (libopcode, GDB, ...) that were still
>> licensed under the GPL v2. The GNU tools switched to GPL v3 at one
>> point in time, so QEMU is stuck with the old versions, i.e. these
>> files did not see much updates for new processors anymore. But
>> for most architectures, we're preferring the Capstone disassembler
>> now anyway, so the old libopcode disassemblers are also hardly
>> used anymore.
>>
>> I'm not 100% sure (thus this is marked as RFC), but I think we could
>> simply drop the old disassemblers nowadays, and hardly anybody would
>> miss them, since we now always embed capstone as a submodule anyway.
>> Or is there still an advantage in keeping these old files around?
>>
>> This RFC series tackles with s390, arm (32-bit) and i386 ... I wanted
>> to get some feedback first, but if we agree that these can be removed,
>> the sparc, mips and ppc disassemblers likely can be removed, too.
>> (I think we should keep m68k.c since Capstone does not have support
>> for Coldfire CPUs yet).
>>
>> Thomas Huth (3):
>>    disas: Remove old libopcode s390 disassembler
>>    disas: Remove old libopcode arm disassembler
>>    disas: Remove old libopcode i386 disassembler
> 
>>   disas/arm.c             | 4012 -----------------------
>>   disas/i386.c            | 6771 ---------------------------------------
>>   disas/s390.c            | 1892 -----------
> 
>>   10 files changed, 12700 deletions(-)
> 
> o_O Nice!
> 
> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Thanks, just a little bit too late - it's in my current pull request already :-)

By the way, what about MIPS? Could MIPS be switched to Capstone, too, so 
that we could finally remove disas/mips.c ? (We're not using capstone there 
yet, and MIPS has so many flavours, big and little endian, 32- and 64-bit 
... so that I'm unsure whether there was a reason for not using Capstone 
there, or whether it just hasn't been tried out yet?)

  Thomas


  reply	other threads:[~2022-05-09 13:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-12 16:58 [RFC PATCH 0/3] Remove some of the old libopcode based disassemblers Thomas Huth
2022-04-12 16:58 ` [RFC PATCH 1/3] disas: Remove old libopcode s390 disassembler Thomas Huth
2022-04-12 16:58 ` [RFC PATCH 2/3] disas: Remove old libopcode arm disassembler Thomas Huth
2022-04-12 16:58 ` [RFC PATCH 3/3] disas: Remove old libopcode i386 disassembler Thomas Huth
2022-04-21 18:35 ` [RFC PATCH 0/3] Remove some of the old libopcode based disassemblers Richard Henderson
2022-05-09 12:20 ` Philippe Mathieu-Daudé via
2022-05-09 13:18   ` Thomas Huth [this message]
2022-05-09 13:42     ` Philippe Mathieu-Daudé via
2022-05-17  7:18       ` Capstone for MIPS (was: Re: [RFC PATCH 0/3] Remove some of the old libopcode based disassemblers) Thomas Huth
2022-05-17 16:15         ` Richard Henderson

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=a8a7b68e-6fb9-e329-5c88-99a1fa5da75b@redhat.com \
    --to=thuth@redhat.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=david@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.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 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.