[kvm-unit-tests PATCH 16/33] arm64: add ESR_ELx EC.SVE
Suzuki K Poulose
suzuki.poulose at arm.com
Fri Apr 12 03:33:51 PDT 2024
From: Joey Gouly <joey.gouly at arm.com>
Add the SVE exception class, so that SVE exceptions are not printed
as 'unknown' exceptions.
Signed-off-by: Joey Gouly <joey.gouly at arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose at arm.com>
---
lib/arm64/asm/esr.h | 1 +
lib/arm64/processor.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/lib/arm64/asm/esr.h b/lib/arm64/asm/esr.h
index 8c351631..335343c5 100644
--- a/lib/arm64/asm/esr.h
+++ b/lib/arm64/asm/esr.h
@@ -26,6 +26,7 @@
#define ESR_EL1_EC_SVC32 (0x11)
#define ESR_EL1_EC_SVC64 (0x15)
#define ESR_EL1_EC_SYS64 (0x18)
+#define ESR_EL1_EC_SVE (0x19)
#define ESR_EL1_EC_IABT_EL0 (0x20)
#define ESR_EL1_EC_IABT_EL1 (0x21)
#define ESR_EL1_EC_PC_ALIGN (0x22)
diff --git a/lib/arm64/processor.c b/lib/arm64/processor.c
index 06fd7cfc..eb93fd7c 100644
--- a/lib/arm64/processor.c
+++ b/lib/arm64/processor.c
@@ -43,6 +43,7 @@ static const char *ec_names[EC_MAX] = {
[ESR_EL1_EC_SVC32] = "SVC32",
[ESR_EL1_EC_SVC64] = "SVC64",
[ESR_EL1_EC_SYS64] = "SYS64",
+ [ESR_EL1_EC_SVE] = "SVE",
[ESR_EL1_EC_IABT_EL0] = "IABT_EL0",
[ESR_EL1_EC_IABT_EL1] = "IABT_EL1",
[ESR_EL1_EC_PC_ALIGN] = "PC_ALIGN",
--
2.34.1
More information about the linux-arm-kernel
mailing list