tools: arm64: Import sysreg.h
authorRaghavendra Rao Ananta <rananta@google.com>
Thu, 7 Oct 2021 23:34:26 +0000 (23:34 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 10:15:51 +0000 (11:15 +0100)
commit272a067df3c89f6f2176a350f88661625a2c8b3b
treefa939b293662c647b24fffd664e1c98c3ec9be3e
parent88ec7e258b70eed5e532d32115fccd11ea2a6287
tools: arm64: Import sysreg.h

Bring-in the kernel's arch/arm64/include/asm/sysreg.h
into tools/ for arm64 to make use of all the standard
register definitions in consistence with the kernel.

Make use of the register read/write definitions from
sysreg.h, instead of the existing definitions. A syntax
correction is needed for the files that use write_sysreg()
to make it compliant with the new (kernel's) syntax.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
[maz: squashed two commits in order to keep the series bisectable]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211007233439.1826892-3-rananta@google.com
Link: https://lore.kernel.org/r/20211007233439.1826892-4-rananta@google.com
tools/arch/arm64/include/asm/sysreg.h [new file with mode: 0644]
tools/testing/selftests/kvm/aarch64/debug-exceptions.c
tools/testing/selftests/kvm/include/aarch64/processor.h