[PATCH 00/16] tcg: Remove TARGET_ALIGNED_ONLY

Richard Henderson posted 16 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230502160846.1289975-1-richard.henderson@linaro.org
Maintainers: Laurent Vivier <laurent@vivier.eu>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Paolo Bonzini <pbonzini@redhat.com>, Peter Xu <peterx@redhat.com>, David Hildenbrand <david@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Aurelien Jarno <aurelien@aurel32.net>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, Chris Wulff <crwulff@gmail.com>, Marek Vasut <marex@denx.de>, Yoshinori Sato <ysato@users.sourceforge.jp>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>
configs/targets/alpha-linux-user.mak       |   1 -
configs/targets/alpha-softmmu.mak          |   1 -
configs/targets/hppa-linux-user.mak        |   1 -
configs/targets/hppa-softmmu.mak           |   1 -
configs/targets/mips-linux-user.mak        |   1 -
configs/targets/mips-softmmu.mak           |   1 -
configs/targets/mips64-linux-user.mak      |   1 -
configs/targets/mips64-softmmu.mak         |   1 -
configs/targets/mips64el-linux-user.mak    |   1 -
configs/targets/mips64el-softmmu.mak       |   1 -
configs/targets/mipsel-linux-user.mak      |   1 -
configs/targets/mipsel-softmmu.mak         |   1 -
configs/targets/mipsn32-linux-user.mak     |   1 -
configs/targets/mipsn32el-linux-user.mak   |   1 -
configs/targets/nios2-softmmu.mak          |   1 -
configs/targets/sh4-linux-user.mak         |   1 -
configs/targets/sh4-softmmu.mak            |   1 -
configs/targets/sh4eb-linux-user.mak       |   1 -
configs/targets/sh4eb-softmmu.mak          |   1 -
configs/targets/sparc-linux-user.mak       |   1 -
configs/targets/sparc-softmmu.mak          |   1 -
configs/targets/sparc32plus-linux-user.mak |   1 -
configs/targets/sparc64-linux-user.mak     |   1 -
configs/targets/sparc64-softmmu.mak        |   1 -
include/exec/memop.h                       |  13 +--
include/exec/poison.h                      |   1 -
target/alpha/translate.c                   |  38 ++++----
target/hppa/translate.c                    |   2 +-
target/mips/tcg/mxu_translate.c            |   3 +-
target/nios2/translate.c                   |  10 ++
target/sh4/translate.c                     | 102 +++++++++++++--------
target/sparc/ldst_helper.c                 |  10 +-
target/sparc/translate.c                   |  66 ++++++-------
tcg/tcg.c                                  |   5 -
target/mips/tcg/micromips_translate.c.inc  |  24 +++--
target/mips/tcg/mips16e_translate.c.inc    |  18 ++--
target/mips/tcg/nanomips_translate.c.inc   |  32 +++----
37 files changed, 186 insertions(+), 162 deletions(-)
[PATCH 00/16] tcg: Remove TARGET_ALIGNED_ONLY
Posted by Richard Henderson 1 year ago
Based-on: 20230502135741.1158035-1-richard.henderson@linaro.org
("[PATCH 0/9] tcg: Remove compatability helpers for qemu ld/st")

Add MO_ALIGN where required, so that we may remove TARGET_ALIGNED_ONLY.
This is required for building tcg once, because we cannot have multiple
definitions of MO_ALIGN and MO_UNALN.


r~


Richard Henderson (16):
  target/alpha: Use MO_ALIGN for system UNALIGN()
  target/alpha: Use MO_ALIGN where required
  target/alpha: Remove TARGET_ALIGNED_ONLY
  target/hppa: Use MO_ALIGN for system UNALIGN()
  target/hppa: Remove TARGET_ALIGNED_ONLY
  target/mips: Add MO_ALIGN to gen_llwp, gen_scwp
  target/mips: Add missing default_tcg_memop_mask
  target/mips: Use MO_ALIGN instead of 0
  target/mips: Remove TARGET_ALIGNED_ONLY
  target/nios2: Remove TARGET_ALIGNED_ONLY
  target/sh4: Use MO_ALIGN where required
  target/sh4: Remove TARGET_ALIGNED_ONLY
  target/sparc: Use MO_ALIGN where required
  target/sparc: Use cpu_ld*_code_mmu
  target/sparc: Remove TARGET_ALIGNED_ONLY
  tcg: Remove TARGET_ALIGNED_ONLY

 configs/targets/alpha-linux-user.mak       |   1 -
 configs/targets/alpha-softmmu.mak          |   1 -
 configs/targets/hppa-linux-user.mak        |   1 -
 configs/targets/hppa-softmmu.mak           |   1 -
 configs/targets/mips-linux-user.mak        |   1 -
 configs/targets/mips-softmmu.mak           |   1 -
 configs/targets/mips64-linux-user.mak      |   1 -
 configs/targets/mips64-softmmu.mak         |   1 -
 configs/targets/mips64el-linux-user.mak    |   1 -
 configs/targets/mips64el-softmmu.mak       |   1 -
 configs/targets/mipsel-linux-user.mak      |   1 -
 configs/targets/mipsel-softmmu.mak         |   1 -
 configs/targets/mipsn32-linux-user.mak     |   1 -
 configs/targets/mipsn32el-linux-user.mak   |   1 -
 configs/targets/nios2-softmmu.mak          |   1 -
 configs/targets/sh4-linux-user.mak         |   1 -
 configs/targets/sh4-softmmu.mak            |   1 -
 configs/targets/sh4eb-linux-user.mak       |   1 -
 configs/targets/sh4eb-softmmu.mak          |   1 -
 configs/targets/sparc-linux-user.mak       |   1 -
 configs/targets/sparc-softmmu.mak          |   1 -
 configs/targets/sparc32plus-linux-user.mak |   1 -
 configs/targets/sparc64-linux-user.mak     |   1 -
 configs/targets/sparc64-softmmu.mak        |   1 -
 include/exec/memop.h                       |  13 +--
 include/exec/poison.h                      |   1 -
 target/alpha/translate.c                   |  38 ++++----
 target/hppa/translate.c                    |   2 +-
 target/mips/tcg/mxu_translate.c            |   3 +-
 target/nios2/translate.c                   |  10 ++
 target/sh4/translate.c                     | 102 +++++++++++++--------
 target/sparc/ldst_helper.c                 |  10 +-
 target/sparc/translate.c                   |  66 ++++++-------
 tcg/tcg.c                                  |   5 -
 target/mips/tcg/micromips_translate.c.inc  |  24 +++--
 target/mips/tcg/mips16e_translate.c.inc    |  18 ++--
 target/mips/tcg/nanomips_translate.c.inc   |  32 +++----
 37 files changed, 186 insertions(+), 162 deletions(-)

-- 
2.34.1
Re: [PATCH 00/16] tcg: Remove TARGET_ALIGNED_ONLY
Posted by Richard Henderson 1 year ago
Ping for mips, nios2, sh4.
The portions for alpha, hppa and sparc have been merged.

r~

On 5/2/23 17:08, Richard Henderson wrote:
> Based-on: 20230502135741.1158035-1-richard.henderson@linaro.org
> ("[PATCH 0/9] tcg: Remove compatability helpers for qemu ld/st")
> 
> Add MO_ALIGN where required, so that we may remove TARGET_ALIGNED_ONLY.
> This is required for building tcg once, because we cannot have multiple
> definitions of MO_ALIGN and MO_UNALN.
> 
> 
> r~
> 
> 
> Richard Henderson (16):
>    target/alpha: Use MO_ALIGN for system UNALIGN()
>    target/alpha: Use MO_ALIGN where required
>    target/alpha: Remove TARGET_ALIGNED_ONLY
>    target/hppa: Use MO_ALIGN for system UNALIGN()
>    target/hppa: Remove TARGET_ALIGNED_ONLY
>    target/mips: Add MO_ALIGN to gen_llwp, gen_scwp
>    target/mips: Add missing default_tcg_memop_mask
>    target/mips: Use MO_ALIGN instead of 0
>    target/mips: Remove TARGET_ALIGNED_ONLY
>    target/nios2: Remove TARGET_ALIGNED_ONLY
>    target/sh4: Use MO_ALIGN where required
>    target/sh4: Remove TARGET_ALIGNED_ONLY
>    target/sparc: Use MO_ALIGN where required
>    target/sparc: Use cpu_ld*_code_mmu
>    target/sparc: Remove TARGET_ALIGNED_ONLY
>    tcg: Remove TARGET_ALIGNED_ONLY
> 
>   configs/targets/alpha-linux-user.mak       |   1 -
>   configs/targets/alpha-softmmu.mak          |   1 -
>   configs/targets/hppa-linux-user.mak        |   1 -
>   configs/targets/hppa-softmmu.mak           |   1 -
>   configs/targets/mips-linux-user.mak        |   1 -
>   configs/targets/mips-softmmu.mak           |   1 -
>   configs/targets/mips64-linux-user.mak      |   1 -
>   configs/targets/mips64-softmmu.mak         |   1 -
>   configs/targets/mips64el-linux-user.mak    |   1 -
>   configs/targets/mips64el-softmmu.mak       |   1 -
>   configs/targets/mipsel-linux-user.mak      |   1 -
>   configs/targets/mipsel-softmmu.mak         |   1 -
>   configs/targets/mipsn32-linux-user.mak     |   1 -
>   configs/targets/mipsn32el-linux-user.mak   |   1 -
>   configs/targets/nios2-softmmu.mak          |   1 -
>   configs/targets/sh4-linux-user.mak         |   1 -
>   configs/targets/sh4-softmmu.mak            |   1 -
>   configs/targets/sh4eb-linux-user.mak       |   1 -
>   configs/targets/sh4eb-softmmu.mak          |   1 -
>   configs/targets/sparc-linux-user.mak       |   1 -
>   configs/targets/sparc-softmmu.mak          |   1 -
>   configs/targets/sparc32plus-linux-user.mak |   1 -
>   configs/targets/sparc64-linux-user.mak     |   1 -
>   configs/targets/sparc64-softmmu.mak        |   1 -
>   include/exec/memop.h                       |  13 +--
>   include/exec/poison.h                      |   1 -
>   target/alpha/translate.c                   |  38 ++++----
>   target/hppa/translate.c                    |   2 +-
>   target/mips/tcg/mxu_translate.c            |   3 +-
>   target/nios2/translate.c                   |  10 ++
>   target/sh4/translate.c                     | 102 +++++++++++++--------
>   target/sparc/ldst_helper.c                 |  10 +-
>   target/sparc/translate.c                   |  66 ++++++-------
>   tcg/tcg.c                                  |   5 -
>   target/mips/tcg/micromips_translate.c.inc  |  24 +++--
>   target/mips/tcg/mips16e_translate.c.inc    |  18 ++--
>   target/mips/tcg/nanomips_translate.c.inc   |  32 +++----
>   37 files changed, 186 insertions(+), 162 deletions(-)
>