mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-21 09:02:00 -06:00
target/arm: Restrict PSCI to TCG
Under KVM, the kernel gets the HVC call and handle the PSCI requests. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190701132516.26392-20-philmd@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
4a15527c9f
commit
21fbea8c8a
1 changed files with 5 additions and 1 deletions
|
@ -529,11 +529,15 @@ vaddr arm_adjust_watchpoint_address(CPUState *cs, vaddr addr, int len);
|
||||||
/* Callback function for when a watchpoint or breakpoint triggers. */
|
/* Callback function for when a watchpoint or breakpoint triggers. */
|
||||||
void arm_debug_excp_handler(CPUState *cs);
|
void arm_debug_excp_handler(CPUState *cs);
|
||||||
|
|
||||||
#ifdef CONFIG_USER_ONLY
|
#if defined(CONFIG_USER_ONLY) || !defined(CONFIG_TCG)
|
||||||
static inline bool arm_is_psci_call(ARMCPU *cpu, int excp_type)
|
static inline bool arm_is_psci_call(ARMCPU *cpu, int excp_type)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
static inline void arm_handle_psci_call(ARMCPU *cpu)
|
||||||
|
{
|
||||||
|
g_assert_not_reached();
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
/* Return true if the r0/x0 value indicates that this SMC/HVC is a PSCI call. */
|
/* 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);
|
bool arm_is_psci_call(ARMCPU *cpu, int excp_type);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue