Received: from eggs.gnu.org ([208.118.235.92]:33957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlQJb-0006OU-Mq for qemu-devel@nongnu.org; Sun, 01 Jul 2012 16:00:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlQJX-0003fU-JS for qemu-devel@nongnu.org; Sun, 01 Jul 2012 16:00:15 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:33115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlQJX-0003e2-DS for qemu-devel@nongnu.org; Sun, 01 Jul 2012 16:00:11 -0400 From: Paul Brook Date: Sun, 1 Jul 2012 20:59:37 +0100 Message-ID: <1341172777-14373-1-git-send-email-paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] target-arm: Fix CP15 based WFI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Paul Brook The coprocessor register rework broke cp15 based WFI instructions. We incorrectly fall through the normal register write case, which incorrectly adds a forced block termination. We've already done a special version of this (DISAS_WFI), so return immediately. Signed-off-by: Paul Brook --- target-arm/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index a2a0ecd..f39b9ca 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -6236,7 +6236,7 @@ static int disas_coproc_insn(CPUARMState * env, DisasContext *s, uint32_t insn) } gen_set_pc_im(s->pc); s->is_jmp = DISAS_WFI; - break; + return 0; default: break; } -- 1.7.10