From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSqSw-0002Y7-1K for qemu-devel@nongnu.org; Sat, 13 Sep 2014 12:46:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSqSq-0000tS-2k for qemu-devel@nongnu.org; Sat, 13 Sep 2014 12:46:25 -0400 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]:43489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSqSp-0000tF-Rp for qemu-devel@nongnu.org; Sat, 13 Sep 2014 12:46:20 -0400 Received: by mail-pd0-f177.google.com with SMTP id y10so3369107pdj.8 for ; Sat, 13 Sep 2014 09:46:18 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sat, 13 Sep 2014 09:45:34 -0700 Message-Id: <1410626734-3804-24-git-send-email-rth@twiddle.net> In-Reply-To: <1410626734-3804-1-git-send-email-rth@twiddle.net> References: <1410626734-3804-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 23/23] cpu-exec: Do CPU_INTERRUPT_HALT unconditionally List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, afaerber@suse.de, aliguori@amazon.com The signal is currently checked by 10 targets, but only actually raised by Sparc and ARM. For the sake of one test-and-branch, we can handle this generic bit generically. Signed-off-by: Richard Henderson --- cpu-exec.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index b977481..3913de0 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -404,17 +404,12 @@ int cpu_exec(CPUArchState *env) cpu->exception_index = EXCP_DEBUG; cpu_loop_exit(cpu); } -#if defined(TARGET_ARM) || defined(TARGET_SPARC) || defined(TARGET_MIPS) || \ - defined(TARGET_PPC) || defined(TARGET_ALPHA) || defined(TARGET_CRIS) || \ - defined(TARGET_MICROBLAZE) || defined(TARGET_LM32) || \ - defined(TARGET_UNICORE32) || defined(TARGET_TRICORE) if (interrupt_request & CPU_INTERRUPT_HALT) { cpu->interrupt_request &= ~CPU_INTERRUPT_HALT; cpu->halted = 1; cpu->exception_index = EXCP_HLT; cpu_loop_exit(cpu); } -#endif #if defined(TARGET_I386) if (interrupt_request & CPU_INTERRUPT_INIT) { cpu_svm_check_intercept_param(env, SVM_EXIT_INIT, 0); -- 1.9.3