qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/9] Support the Capstone disassembler
@ 2017-09-26 20:14 Richard Henderson
  2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 1/9] target/i386: Convert to disas_set_info hook Richard Henderson
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Richard Henderson @ 2017-09-26 20:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, qemu-ppc

Changes since v2:
  * Fix a minor buglet in the monitor disassembly
  * Add capstone as a submodule, preferring that when present.

The submodule idea came from discussion with PMM.  The idea is that
we would potentially remove the old binutils code, and libvxil, and
rely on capstone entirely.  Which would then of course require capstone
to be present in order to get reasonable debugging.

I have not done the actual removal yet, but that is an easy next step.


r~

PS: Comments from the ppc folk?  Can I encourage you to try this and
sanity check what capstone is emitting?  Unlike for s390x, it doesn't
look obviously wrong to me...


Richard Henderson (9):
  target/i386: Convert to disas_set_info hook
  target/ppc: Convert to disas_set_info hook
  disas: Remove unused flags arguments
  disas: Support the Capstone disassembler library
  i386: Support Capstone in disas_set_info
  arm: Support Capstone in disas_set_info
  ppc: Support Capstone in disas_set_info
  disas: Remove monitor_disas_is_physical
  disas: Add capstone as submodule

 Makefile                      |   4 +
 include/disas/bfd.h           |   4 +
 include/disas/capstone.h      |  38 ++++++
 include/disas/disas.h         |   4 +-
 include/exec/log.h            |   4 +-
 disas.c                       | 308 ++++++++++++++++++++++++++++++------------
 monitor.c                     |  29 +---
 target/alpha/translate.c      |   2 +-
 target/arm/cpu.c              |  21 ++-
 target/arm/translate-a64.c    |   3 +-
 target/arm/translate.c        |   3 +-
 target/cris/translate.c       |   3 +-
 target/hppa/translate.c       |   2 +-
 target/i386/cpu.c             |  19 +++
 target/i386/translate.c       |   8 +-
 target/lm32/translate.c       |   2 +-
 target/m68k/translate.c       |   2 +-
 target/microblaze/translate.c |   2 +-
 target/mips/translate.c       |   2 +-
 target/nios2/translate.c      |   2 +-
 target/openrisc/translate.c   |   2 +-
 target/ppc/translate.c        |   5 +-
 target/ppc/translate_init.c   |  27 ++++
 target/s390x/translate.c      |   2 +-
 target/sh4/translate.c        |   2 +-
 target/sparc/translate.c      |   2 +-
 target/tricore/translate.c    |   2 +-
 target/unicore32/translate.c  |   2 +-
 target/xtensa/translate.c     |   2 +-
 .gitmodules                   |   3 +
 capstone                      |   1 +
 configure                     |  36 +++++
 32 files changed, 397 insertions(+), 151 deletions(-)
 create mode 100644 include/disas/capstone.h
 create mode 160000 capstone

-- 
2.13.5

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-09-28  4:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-26 20:14 [Qemu-devel] [PATCH v3 0/9] Support the Capstone disassembler Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 1/9] target/i386: Convert to disas_set_info hook Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 2/9] target/ppc: " Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 3/9] disas: Remove unused flags arguments Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 4/9] disas: Support the Capstone disassembler library Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 5/9] i386: Support Capstone in disas_set_info Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 6/9] arm: " Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 7/9] ppc: " Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 8/9] disas: Remove monitor_disas_is_physical Richard Henderson
2017-09-26 20:14 ` [Qemu-devel] [PATCH v3 9/9] disas: Add capstone as submodule Richard Henderson
2017-09-26 20:27 ` [Qemu-devel] [PATCH v3 0/9] Support the Capstone disassembler no-reply
2017-09-26 20:29 ` no-reply
2017-09-27 19:06 ` Richard Henderson

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).