Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 0/3] Move duplicated instructions macros into asm/insn.h
@ 2025-04-22  8:25 Alexandre Ghiti
  2025-04-22  8:25 ` [PATCH 1/3] riscv: Fix typo EXRACT -> EXTRACT Alexandre Ghiti
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Alexandre Ghiti @ 2025-04-22  8:25 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Alexandre Ghiti, Anup Patel,
	Atish Patra, linux-riscv, linux-kernel, kvm, kvm-riscv
  Cc: Alexandre Ghiti

The instructions parsing macros were duplicated and one of them had different
implementations, which is error prone.

So let's consolidate those macros in asm/insn.h.

Alexandre Ghiti (3):
  riscv: Fix typo EXRACT -> EXTRACT
  riscv: Strengthen duplicate and inconsistent definition of RV_X()
  riscv: Move all duplicate insn parsing macros into asm/insn.h

 arch/riscv/include/asm/insn.h        | 205 ++++++++++++++++++++++++---
 arch/riscv/kernel/elf_kexec.c        |   2 +-
 arch/riscv/kernel/traps_misaligned.c | 137 +-----------------
 arch/riscv/kernel/vector.c           |   2 +-
 arch/riscv/kvm/vcpu_insn.c           | 128 +----------------
 5 files changed, 189 insertions(+), 285 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2025-05-06  8:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22  8:25 [PATCH 0/3] Move duplicated instructions macros into asm/insn.h Alexandre Ghiti
2025-04-22  8:25 ` [PATCH 1/3] riscv: Fix typo EXRACT -> EXTRACT Alexandre Ghiti
2025-04-22  9:04   ` Clément Léger
2025-04-22 10:20   ` Philippe Mathieu-Daudé
2025-04-24 10:35   ` Andrew Jones
2025-04-22  8:25 ` [PATCH 2/3] riscv: Strengthen duplicate and inconsistent definition of RV_X() Alexandre Ghiti
2025-04-22  9:14   ` Clément Léger
2025-04-24  8:45   ` Andrew Jones
2025-04-25  7:26     ` Andrew Jones
2025-04-22  8:25 ` [PATCH 3/3] riscv: Move all duplicate insn parsing macros into asm/insn.h Alexandre Ghiti
2025-04-22  9:36   ` Clément Léger
2025-05-06  8:05     ` Alexandre Ghiti
2025-04-24 10:35   ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox