From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NesG7-0002Cg-M1 for qemu-devel@nongnu.org; Tue, 09 Feb 2010 10:44:15 -0500 Received: from [199.232.76.173] (port=37885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NesG6-0002Bs-6D for qemu-devel@nongnu.org; Tue, 09 Feb 2010 10:44:14 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NesG5-0000CV-FU for qemu-devel@nongnu.org; Tue, 09 Feb 2010 10:44:13 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:36845) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NesG5-0000CJ-4f for qemu-devel@nongnu.org; Tue, 09 Feb 2010 10:44:13 -0500 Received: by ewy24 with SMTP id 24so7201419ewy.16 for ; Tue, 09 Feb 2010 07:44:12 -0800 (PST) From: Johan Bengtsson Date: Tue, 9 Feb 2010 16:43:47 +0100 Message-Id: <1265730227-21926-2-git-send-email-teofrastius@gmail.com> In-Reply-To: <1265730227-21926-1-git-send-email-teofrastius@gmail.com> References: <1265730227-21926-1-git-send-email-teofrastius@gmail.com> Subject: [Qemu-devel] [PATCH] * Fixed problem with IT AL. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Johan Bengtsson --- target-arm/translate.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 786c329..554583d 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -8328,9 +8328,11 @@ static void disas_thumb_insn(CPUState *env, DisasContext *s) if (s->condexec_mask) { cond = s->condexec_cond; - s->condlabel = gen_new_label(); - gen_test_cc(cond ^ 1, s->condlabel); - s->condjmp = 1; + if (cond != 0x0e) { /* Skip conditional when condition is AL. */ + s->condlabel = gen_new_label(); + gen_test_cc(cond ^ 1, s->condlabel); + s->condjmp = 1; + } } insn = lduw_code(s->pc); -- 1.6.3.3