From patchwork Tue Apr 12 22:31:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 90915 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 69F93B6F59 for ; Wed, 13 Apr 2011 11:48:46 +1000 (EST) Received: from localhost ([::1]:41666 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9pCF-0007HT-Kk for incoming@patchwork.ozlabs.org; Tue, 12 Apr 2011 21:48:43 -0400 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 Received: from [2001:470:d4ed:0:5e26:aff:fe2b:6f5b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Q9m74-0001WW-FV; Wed, 13 Apr 2011 00:31:10 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.72) (envelope-from ) id 1Q9m73-0005r0-EZ; Wed, 13 Apr 2011 00:31:09 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Wed, 13 Apr 2011 00:31:04 +0200 Message-Id: <1302647466-22448-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.2.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 88.191.126.93 Cc: Guan Xuetao , Aurelien Jarno Subject: [Qemu-devel] [PATCH 1/3] target-unicore32: remove cpu_halted() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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__ */