[PATCH v8 0/9] target/arm: pc-relative translation blocks

Richard Henderson posted 9 patches 1 year, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221020030641.2066807-1-richard.henderson@linaro.org
Maintainers: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu-param.h        |   1 +
target/arm/translate-a32.h    |   2 +-
target/arm/translate.h        |  66 +++++++-
target/arm/cpu.c              |  23 +--
target/arm/translate-a64.c    | 199 ++++++++++++++----------
target/arm/translate-m-nocp.c |   8 +-
target/arm/translate-mve.c    |   2 +-
target/arm/translate-vfp.c    |  10 +-
target/arm/translate.c        | 284 ++++++++++++++++++++--------------
9 files changed, 367 insertions(+), 228 deletions(-)
[PATCH v8 0/9] target/arm: pc-relative translation blocks
Posted by Richard Henderson 1 year, 6 months ago
This is the Arm specific changes required to reduce the
amount of translation for address space randomization.

Changes for v8:
  * Add a comment to both gen_goto_tb concerning the ordering
    of the pc update vs the goto_tb opcode.

r~

Richard Henderson (9):
  target/arm: Introduce curr_insn_len
  target/arm: Change gen_goto_tb to work on displacements
  target/arm: Change gen_*set_pc_im to gen_*update_pc
  target/arm: Change gen_exception_insn* to work on displacements
  target/arm: Remove gen_exception_internal_insn pc argument
  target/arm: Change gen_jmp* to work on displacements
  target/arm: Introduce gen_pc_plus_diff for aarch64
  target/arm: Introduce gen_pc_plus_diff for aarch32
  target/arm: Enable TARGET_TB_PCREL

 target/arm/cpu-param.h        |   1 +
 target/arm/translate-a32.h    |   2 +-
 target/arm/translate.h        |  66 +++++++-
 target/arm/cpu.c              |  23 +--
 target/arm/translate-a64.c    | 199 ++++++++++++++----------
 target/arm/translate-m-nocp.c |   8 +-
 target/arm/translate-mve.c    |   2 +-
 target/arm/translate-vfp.c    |  10 +-
 target/arm/translate.c        | 284 ++++++++++++++++++++--------------
 9 files changed, 367 insertions(+), 228 deletions(-)

-- 
2.34.1
Re: [PATCH v8 0/9] target/arm: pc-relative translation blocks
Posted by Peter Maydell 1 year, 6 months ago
On Thu, 20 Oct 2022 at 04:14, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> This is the Arm specific changes required to reduce the
> amount of translation for address space randomization.
>
> Changes for v8:
>   * Add a comment to both gen_goto_tb concerning the ordering
>     of the pc update vs the goto_tb opcode.

Applied to target-arm.next, thanks.

-- PMM