On 2/21/24 03:08, Jinjie Ruan via wrote:
This only implements the external delivery method via the GICv3.

Signed-off-by: Jinjie Ruan <ruanjin...@huawei.com>
---
  target/arm/cpu-qom.h |  3 ++-
  target/arm/cpu.c     | 39 ++++++++++++++++++++++++++++++++++-----
  target/arm/cpu.h     |  2 ++
  target/arm/helper.c  |  1 +
  4 files changed, 39 insertions(+), 6 deletions(-)

diff --git a/target/arm/cpu-qom.h b/target/arm/cpu-qom.h
index 8e032691db..66d555a605 100644
--- a/target/arm/cpu-qom.h
+++ b/target/arm/cpu-qom.h
@@ -36,11 +36,12 @@ DECLARE_CLASS_CHECKERS(AArch64CPUClass, AARCH64_CPU,
  #define ARM_CPU_TYPE_SUFFIX "-" TYPE_ARM_CPU
  #define ARM_CPU_TYPE_NAME(name) (name ARM_CPU_TYPE_SUFFIX)
-/* Meanings of the ARMCPU object's four inbound GPIO lines */
+/* Meanings of the ARMCPU object's five inbound GPIO lines */
  #define ARM_CPU_IRQ 0
  #define ARM_CPU_FIQ 1
  #define ARM_CPU_VIRQ 2
  #define ARM_CPU_VFIQ 3
+#define ARM_CPU_NMI 4

You need a 6th GPIO for vNMI.


r~

Reply via email to