This series proposes a generic (target-agnostic) instruction translation
framework.

It basically provides a generic main loop for instruction disassembly, which
calls target-specific functions when necessary. This generalization makes
inserting new code in the main loop easier, and helps in keeping all targets in
synch as to the contents of it.

I've only ported i386 as an example to get some feedback, but I'm planning on
porting ARM next to see how well it fits into the current organization.

Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu>
---

Lluís Vilanova (4):
      Pass generic CPUState to gen_intermediate_code()
      queue: Add macro for incremental traversal
      target: [tcg] Add generic translation framework
      target: [tcg,i386] Port to generic translation framework


 include/exec/exec-all.h               |    2 
 include/exec/translate-all_template.h |   58 +++++++
 include/qemu/queue.h                  |    5 +
 include/qom/cpu.h                     |   21 ++
 target-alpha/translate.c              |   11 +
 target-arm/translate.c                |   24 +--
 target-cris/translate.c               |   17 +-
 target-i386/cpu.h                     |    2 
 target-i386/translate.c               |  290 +++++++++++++++------------------
 target-lm32/translate.c               |   22 +--
 target-m68k/translate.c               |   15 +-
 target-microblaze/translate.c         |   24 +--
 target-mips/translate.c               |   15 +-
 target-moxie/translate.c              |   14 +-
 target-openrisc/translate.c           |   24 +--
 target-ppc/translate.c                |   15 +-
 target-s390x/translate.c              |   13 +
 target-sh4/translate.c                |   15 +-
 target-sparc/translate.c              |   11 +
 target-tilegx/translate.c             |    7 -
 target-tricore/translate.c            |    9 -
 target-unicore32/translate.c          |   17 +-
 target-xtensa/translate.c             |   13 +
 translate-all.c                       |    2 
 translate-all_template.h              |  160 ++++++++++++++++++
 25 files changed, 503 insertions(+), 303 deletions(-)
 create mode 100644 include/exec/translate-all_template.h
 create mode 100644 translate-all_template.h


To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc: Peter Crosthwaite <crosthwaite.pe...@gmail.com>
Cc: Richard Henderson <r...@twiddle.net>

Reply via email to