[PATCH 0/3] Replace TARGET_TB_PCREL with CF_PCREL

Anton Johansson via posted 3 patches 1 year, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230207104352.11055-1-anjo@rev.ng
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Eduardo Habkost <eduardo@habkost.net>
There is a newer version of this series
accel/tcg/cpu-exec.c        |  8 +++----
accel/tcg/internal.h        | 10 ++++----
accel/tcg/perf.c            |  2 +-
accel/tcg/tb-jmp-cache.h    | 48 ++++++++++++++++++-------------------
accel/tcg/tb-maint.c        |  8 +++----
accel/tcg/translate-all.c   | 14 +++++------
include/exec/cpu-defs.h     |  3 ---
include/exec/exec-all.h     | 28 ++++++++++------------
target/arm/cpu-param.h      |  2 --
target/arm/cpu.c            | 13 ++++++----
target/arm/translate-a64.c  |  8 +++----
target/arm/translate.c      |  6 ++---
target/arm/translate.h      |  2 +-
target/i386/cpu-param.h     |  4 ----
target/i386/cpu.c           |  5 ++++
target/i386/helper.c        |  2 +-
target/i386/tcg/tcg-cpu.c   |  6 ++---
target/i386/tcg/translate.c | 26 ++++++++++----------
18 files changed, 95 insertions(+), 100 deletions(-)
[PATCH 0/3] Replace TARGET_TB_PCREL with CF_PCREL
Posted by Anton Johansson via 1 year, 2 months ago
This patchset entirely replaces the macro TARGET_TB_PCREL with
a field in TranslationBlock.cflags called CF_PCREL, and is a
first step towards removing target-specific assumptions from
non-target/ directories.

The grand goal is to allow for heterogeneous QEMU binaries
consisting of multiple frontends.

RFC: https://lists.nongnu.org/archive/html/qemu-devel/2022-12/msg04518.html

Anton Johansson (3):
  include/exec: Introduce `CF_PCREL`
  Replace `TARGET_TB_PCREL` with `CF_PCREL`
  target: Set `CF_PCREL` for arm and i386 frontends

 accel/tcg/cpu-exec.c        |  8 +++----
 accel/tcg/internal.h        | 10 ++++----
 accel/tcg/perf.c            |  2 +-
 accel/tcg/tb-jmp-cache.h    | 48 ++++++++++++++++++-------------------
 accel/tcg/tb-maint.c        |  8 +++----
 accel/tcg/translate-all.c   | 14 +++++------
 include/exec/cpu-defs.h     |  3 ---
 include/exec/exec-all.h     | 28 ++++++++++------------
 target/arm/cpu-param.h      |  2 --
 target/arm/cpu.c            | 13 ++++++----
 target/arm/translate-a64.c  |  8 +++----
 target/arm/translate.c      |  6 ++---
 target/arm/translate.h      |  2 +-
 target/i386/cpu-param.h     |  4 ----
 target/i386/cpu.c           |  5 ++++
 target/i386/helper.c        |  2 +-
 target/i386/tcg/tcg-cpu.c   |  6 ++---
 target/i386/tcg/translate.c | 26 ++++++++++----------
 18 files changed, 95 insertions(+), 100 deletions(-)

--
2.39.1