On 18/4/25 10:21, WANG Rui wrote:
This patch replaces uses of the generic TRANS macro with TRANS64 for
instructions that are only valid when 64-bit support is available.

This improves correctness and avoids potential assertion failures or
undefined behavior during translation on 32-bit-only configurations.

Signed-off-by: WANG Rui <wang...@loongson.cn>
---
  .../tcg/insn_trans/trans_atomic.c.inc         | 36 +++++++++----------
  .../tcg/insn_trans/trans_extra.c.inc          |  8 +++--
  .../tcg/insn_trans/trans_privileged.c.inc     |  4 +--
  .../tcg/insn_trans/trans_shift.c.inc          |  4 +--
  .../loongarch/tcg/insn_trans/trans_vec.c.inc  | 16 ++++-----
  target/loongarch/translate.h                  |  4 +++
  6 files changed, 40 insertions(+), 32 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to