|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 01/30] accel/tcg: Restrict cpu_handle_halt() to sysemu |
Date: | Fri, 3 Sep 2021 21:31:02 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 9/2/21 6:15 PM, Philippe Mathieu-Daudé wrote:
+#ifndef CONFIG_USER_ONLY static inline bool cpu_handle_halt(CPUState *cpu) {
Hmm, slightly better to move the ifdef just inside here,
@@ -607,6 +608,7 @@ static inline bool cpu_handle_halt(CPUState *cpu)
and here,
return false; } +#endif /* !CONFIG_USER_ONLY */static inline void cpu_handle_debug_exception(CPUState *cpu){ @@ -865,9 +867,11 @@ int cpu_exec(CPUState *cpu) /* replay_interrupt may need current_cpu */ current_cpu = cpu;+#ifndef CONFIG_USER_ONLYif (cpu_handle_halt(cpu)) { return EXCP_HALTED; } +#endif
which would eliminate this one. r~
[Prev in Thread] | Current Thread | [Next in Thread] |