On Thu, Nov 07, 2024 at 01:38:05AM +0000, Mark Brown wrote:
For some reason when we're accessing SVCR in the FP tests we use the raw numerical version of the register name rather than hiding that behind a preprocessor macro for readability. Since we already use the generated defines for sysreg bitfields in other the KVM selftests let's do the same thing here, also replacing the defines for the SVCR bitfields which we have.
The build setup for fp-ptrace is a little fun so we have to manually define __ASSEMBLY__ in the source code for that.
Signed-off-by: Mark Brown broonie@kernel.org
I get an error when trying to build this out of tree:
/home/cmarinas/work/linux/tools/testing/selftests/../../../tools/arch/arm64/include/asm/sysreg.h:132:10: fatal error: asm/sysreg-defs.h: No such file or directory 132 | #include "asm/sysreg-defs.h" | ^~~~~~~~~~~~~~~~~~~
Probably sysreg-defs.h has not been generated yet. Too late to figure it out now.