qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/6] Add some macros to check cpu features
@ 2023-08-10 12:41 Song Gao
  2023-08-10 12:41 ` [PATCH v1 1/6] target/loongarch: Fix loongarch_la464_initfn() misses setting LSPW Song Gao
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Song Gao @ 2023-08-10 12:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: richard.henderson, philmd, maobibo, yangxiaojuan

Based-on: https://patchew.org/QEMU/20230809083258.1787464-1-c@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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-11  3:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 12:41 [PATCH v1 0/6] Add some macros to check cpu features Song Gao
2023-08-10 12:41 ` [PATCH v1 1/6] target/loongarch: Fix loongarch_la464_initfn() misses setting LSPW Song Gao
2023-08-10 14:09   ` Richard Henderson
2023-08-10 12:41 ` [PATCH v1 2/6] target/loongarch: Add some checks before translating fpu instructions Song Gao
2023-08-10 15:03   ` Richard Henderson
2023-08-11  3:43     ` gaosong
2023-08-10 12:41 ` [PATCH v1 3/6] target/loongarch: Add REQUIRE_LSPW macro to check LSPW instructions Song Gao
2023-08-10 12:41 ` [PATCH v1 4/6] target/loongarch: Add REQUIRE_LAM macro to check atomic instructions Song Gao
2023-08-10 12:41 ` [PATCH v1 5/6] target/loongarch: Add REQUIRE_LSX macro to check LSX instructions Song Gao
2023-08-10 12:41 ` [PATCH v1 6/6] target/loongarch: Add REQUIRE_IOCSR macro to check IOCSR instructions Song Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).