Received: from eggs.gnu.org ([140.186.70.92]:33722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9p7S-0004ei-Mp for qemu-devel@nongnu.org; Tue, 12 Apr 2011 21:43:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9m78-0005Fh-2e for qemu-devel@nongnu.org; Tue, 12 Apr 2011 18:31:18 -0400 Received: from hall.aurel32.net ([88.191.126.93]:48396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9m77-0005Bv-N7 for qemu-devel@nongnu.org; Tue, 12 Apr 2011 18:31:13 -0400 From: Aurelien Jarno Date: Wed, 13 Apr 2011 00:31:04 +0200 Message-Id: <1302647466-22448-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 1/3] target-unicore32: remove cpu_halted() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Guan Xuetao , Aurelien Jarno cpu_halted() has been removed on all targets in commit eda48c344f35e5bd511dea3e8be56fb08c19b399. Also remove it on unicore32. Cc: Guan Xuetao Signed-off-by: Aurelien Jarno --- target-unicore32/exec.h | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/target-unicore32/exec.h b/target-unicore32/exec.h index 4ab55f4..498df23 100644 --- a/target-unicore32/exec.h +++ b/target-unicore32/exec.h @@ -32,19 +32,4 @@ static inline int cpu_has_work(CPUState *env) (CPU_INTERRUPT_HARD | CPU_INTERRUPT_EXITTB); } -static inline int cpu_halted(CPUState *env) -{ - if (!env->halted) { - return 0; - } - /* An interrupt wakes the CPU even if the I and R ASR bits are - set. We use EXITTB to silently wake CPU without causing an - actual interrupt. */ - if (cpu_has_work(env)) { - env->halted = 0; - return 0; - } - return EXCP_HALTED; -} - #endif /* __UC32_EXEC_H__ */ -- 1.7.2.3