diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-07-01 17:26:22 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-07-01 17:29:01 +0100 |
commit | 21fbea8c8af72817d8e21570fa4edbfae417341b (patch) | |
tree | da59eb2ba11299aefe23ede81a2e42d6356a7437 /target | |
parent | 4a15527c9feecfd2fa2807d5e698abbc19feb35f (diff) | |
download | qemu-21fbea8c8af72817d8e21570fa4edbfae417341b.zip qemu-21fbea8c8af72817d8e21570fa4edbfae417341b.tar.gz qemu-21fbea8c8af72817d8e21570fa4edbfae417341b.tar.bz2 |
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/internals.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/arm/internals.h b/target/arm/internals.h index 46a1313..57e0253 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); -#ifdef CONFIG_USER_ONLY +#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(); +} #else /* 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); |