arm64: Add macro to compose a sysreg field value
authorMarc Zyngier <maz@kernel.org>
Mon, 22 Jan 2024 18:13:35 +0000 (18:13 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 8 Feb 2024 15:12:44 +0000 (15:12 +0000)
commit53eaeb7fbe2702520125ae7d72742362c071a1f2
tree85a279670f55f4579e1cfe5abe0a3ec3669046c7
parent6613476e225e090cc9aad49be7fa504e290dd33d
arm64: Add macro to compose a sysreg field value

A common idiom is to compose a tupple (reg, field, val) into
a symbol matching an autogenerated definition.

Add a help performing the concatenation and replace it when
open-coded implementations exist.

Suggested-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20240122181344.258974-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/sysreg.h
arch/arm64/kvm/sys_regs.c