Based-on: https://patchew.org/QEMU/20230809083258.1787464-...@jia.je/
Hi, This series adds some macros to check CPU features. This includes: CPUCFG[1].IOCSR CPUCFG[2].FP CPUCFG[2].FP_SP CPUCFG[2].FP_DP CPUCFG[2].LSPW CPUCFG[2].LAM CPUCFG[2].LSX Thanks. Song Gao Song Gao (6): target/loongarch: Fix loongarch_la464_initfn() misses setting LSPW. target/loongarch: Add some checks before translating fpu instructions target/loongarch: Add REQUIRE_LSPW macro to check LSPW instructions target/loongarch: Add REQUIRE_LAM macro to check atomic instructions target/loongarch: Add REQUIRE_LSX macro to check LSX instructions target/loongarch: Add REQUIRE_IOCSR macro to check IOCSR instructions target/loongarch/cpu.c | 1 + target/loongarch/cpu.h | 14 ++ .../loongarch/insn_trans/trans_atomic.c.inc | 12 ++ .../loongarch/insn_trans/trans_farith.c.inc | 132 ++++++++++++------ target/loongarch/insn_trans/trans_fcmp.c.inc | 4 + target/loongarch/insn_trans/trans_fcnv.c.inc | 56 ++++---- .../loongarch/insn_trans/trans_fmemory.c.inc | 104 ++++++++++---- target/loongarch/insn_trans/trans_fmov.c.inc | 47 +++++-- target/loongarch/insn_trans/trans_lsx.c.inc | 71 +++++++++- .../insn_trans/trans_privileged.c.inc | 16 +++ 10 files changed, 354 insertions(+), 103 deletions(-) -- 2.39.1