[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v3 0/9] Support the Capstone disassembler
From: |
Richard Henderson |
Subject: |
[Qemu-ppc] [PATCH v3 0/9] Support the Capstone disassembler |
Date: |
Tue, 26 Sep 2017 13:14:18 -0700 |
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
- [Qemu-ppc] [PATCH v3 0/9] Support the Capstone disassembler,
Richard Henderson <=
- [Qemu-ppc] [PATCH v3 1/9] target/i386: Convert to disas_set_info hook, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 2/9] target/ppc: Convert to disas_set_info hook, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 3/9] disas: Remove unused flags arguments, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 5/9] i386: Support Capstone in disas_set_info, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 6/9] arm: Support Capstone in disas_set_info, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 7/9] ppc: Support Capstone in disas_set_info, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 9/9] disas: Add capstone as submodule, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 4/9] disas: Support the Capstone disassembler library, Richard Henderson, 2017/09/26
- [Qemu-ppc] [PATCH v3 8/9] disas: Remove monitor_disas_is_physical, Richard Henderson, 2017/09/26
- Re: [Qemu-ppc] [Qemu-devel] [PATCH v3 0/9] Support the Capstone disassembler, no-reply, 2017/09/26