From d9940c5d6b3b7ad1173a16c58246196a03b3d317 Mon Sep 17 00:00:00 2001 From: huangyan Date: Fri, 4 Jul 2025 00:31:45 +0800 Subject: [PATCH] target-arm: fix qemu-arm target build error * handle PSCI calls in qemu-arm this change the same as upstream: 98128601ac8ff23df8a4c48acff00f9614613463: * target-arm: add emulation of PSCI calls for system emulation Ported-by: huangyan huangyan@cdjrlc.com Original-author: wangziliang wangziliang@kylinos.cn --- target/arm/internals.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target/arm/internals.h b/target/arm/internals.h index 20b9c1da38..a02a98d72a 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -314,10 +314,17 @@ 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 +static inline bool arm_is_psci_call(ARMCPU *cpu, int excp_type) +{ + return false; +} +#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); /* Actually handle a PSCI call */ void arm_handle_psci_call(ARMCPU *cpu); +#endif /** * arm_clear_exclusive: clear the exclusive monitor -- Gitee