[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-arm] [PATCH v3 19/27] target/arm: Restrict PSCI to TCG

From: Philippe Mathieu-Daudé
Subject: [Qemu-arm] [PATCH v3 19/27] target/arm: Restrict PSCI to TCG
Date: Mon, 1 Jul 2019 15:25:08 +0200

Under KVM, the kernel gets the HVC call and handle the PSCI requests.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
 target/arm/internals.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/target/arm/internals.h b/target/arm/internals.h
index 46a1313d69..57e0253ef4 100644
--- a/target/arm/internals.h
+++ b/target/arm/internals.h
@@ -529,11 +529,15 @@ vaddr arm_adjust_watchpoint_address(CPUState *cs, vaddr 
addr, int len);
 /* Callback function for when a watchpoint or breakpoint triggers. */
 void arm_debug_excp_handler(CPUState *cs);
+#if defined(CONFIG_USER_ONLY) || !defined(CONFIG_TCG)
 static inline bool arm_is_psci_call(ARMCPU *cpu, int excp_type)
     return false;
+static inline void arm_handle_psci_call(ARMCPU *cpu)
+    g_assert_not_reached();
 /* Return true if the r0/x0 value indicates that this SMC/HVC is a PSCI call. 
 bool arm_is_psci_call(ARMCPU *cpu, int excp_type);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]