Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl9lM-0004ES-Jd for qemu-devel@nongnu.org; Wed, 01 Oct 2008 18:01:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl9lL-0004Dh-Oj for qemu-devel@nongnu.org; Wed, 01 Oct 2008 18:01:40 -0400 Received: from [199.232.76.173] (port=57382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl9lL-0004DT-AE for qemu-devel@nongnu.org; Wed, 01 Oct 2008 18:01:39 -0400 Received: from savannah.gnu.org ([199.232.41.3]:43531 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kl9lK-0004rS-W6 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 18:01:39 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kl9lK-0004ZS-5V for qemu-devel@nongnu.org; Wed, 01 Oct 2008 22:01:38 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kl9lJ-0004YA-Fu for qemu-devel@nongnu.org; Wed, 01 Oct 2008 22:01:38 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Wed, 01 Oct 2008 22:01:37 +0000 Subject: [Qemu-devel] [5391] ppc: fix crash in ppc system single step support Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5391 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5391 Author: aurel32 Date: 2008-10-01 22:01:37 +0000 (Wed, 01 Oct 2008) Log Message: ----------- ppc: fix crash in ppc system single step support There was a bogus case where two system debug ops get generated. This patch removes the broken system debug op. This was a left over after making some changes to correctly generate debug ops on branch operations inside gen_goto_tb(); The test case against this patch is to turn on single stepping with timers, boot a linux kernel, set a breakpoint a do_fork and in gdb execute "si 3000". Then qemu-system-ppc will fault executing a debug op, which should not have been executed. Signed-off-by: Jason Wessel Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-ppc/translate.c Modified: trunk/target-ppc/translate.c =================================================================== --- trunk/target-ppc/translate.c 2008-10-01 22:01:28 UTC (rev 5390) +++ trunk/target-ppc/translate.c 2008-10-01 22:01:37 UTC (rev 5391) @@ -3048,10 +3048,6 @@ #endif gen_op_btest_T1(ctx->nip); no_test: - if (ctx->singlestep_enabled & GDBSTUB_SINGLE_STEP) { - gen_update_nip(ctx, ctx->nip); - gen_op_debug(); - } tcg_gen_exit_tb(0); } }