qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] target/riscv: Convert RISC-V custom bitops to standard ones
@ 2024-08-05  4:33 Alistair Francis
  2024-08-05  4:33 ` [PATCH 1/2] include: bitops: Add mask extract64/deposit64 Alistair Francis
  2024-08-05  4:33 ` [PATCH 2/2] target/riscv: Remove get_field and set_field Alistair Francis
  0 siblings, 2 replies; 5+ messages in thread
From: Alistair Francis @ 2024-08-05  4:33 UTC (permalink / raw)
  To: qemu-devel, peter.maydell
  Cc: dbarboza, Palmer Dabbelt, Weiwei Li, zhiwei_liu, Alistair Francis,
	atishp, bmeng.cn, qemu-riscv, alistair23

Based on discussions at [1] this is a simple conversion from using the
RISC-V specific bit operations to using standard QEMU ones.

This series adds two new bit op helpers mask_extract64() and
mask_deposit64() which the RISC-V target can then use.

1: https://mail.gnu.org/archive/html/qemu-devel/2024-07/msg05976.html

Alistair Francis (2):
  include: bitops: Add mask extract64/deposit64
  target/riscv: Remove get_field and set_field

 include/qemu/bitops.h     | 35 +++++++++++++++++
 target/riscv/cpu.h        | 10 ++---
 target/riscv/cpu_bits.h   |  6 ---
 target/riscv/pmp.h        |  6 +--
 target/riscv/cpu.c        | 20 +++++-----
 target/riscv/cpu_helper.c | 83 ++++++++++++++++++++-------------------
 target/riscv/csr.c        | 82 +++++++++++++++++++-------------------
 target/riscv/debug.c      | 14 +++----
 target/riscv/monitor.c    |  8 ++--
 target/riscv/op_helper.c  | 70 +++++++++++++++++----------------
 target/riscv/pmu.c        |  6 +--
 target/riscv/zce_helper.c |  2 +-
 12 files changed, 191 insertions(+), 151 deletions(-)

-- 
2.45.2



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

end of thread, other threads:[~2024-08-07  4:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05  4:33 [PATCH 0/2] target/riscv: Convert RISC-V custom bitops to standard ones Alistair Francis
2024-08-05  4:33 ` [PATCH 1/2] include: bitops: Add mask extract64/deposit64 Alistair Francis
2024-08-06  7:29   ` Richard Henderson
2024-08-07  4:10     ` Alistair Francis
2024-08-05  4:33 ` [PATCH 2/2] target/riscv: Remove get_field and set_field Alistair Francis

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).