Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpAQd-0005BK-2J for qemu-devel@nongnu.org; Sun, 12 Oct 2008 19:32:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpAQc-0005B4-Jg for qemu-devel@nongnu.org; Sun, 12 Oct 2008 19:32:50 -0400 Received: from [199.232.76.173] (port=41000 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpAQc-0005Ax-6x for qemu-devel@nongnu.org; Sun, 12 Oct 2008 19:32:50 -0400 Received: from savannah.gnu.org ([199.232.41.3]:32985 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 1KpAQc-0004e5-EN for qemu-devel@nongnu.org; Sun, 12 Oct 2008 19:32:50 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KpAQb-0002Jk-Cu for qemu-devel@nongnu.org; Sun, 12 Oct 2008 23:32:49 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KpAQb-0002Jg-6u for qemu-devel@nongnu.org; Sun, 12 Oct 2008 23:32:49 +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: Sun, 12 Oct 2008 23:32:49 +0000 Subject: [Qemu-devel] [5472] SH4: fix single-stepping 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: 5472 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5472 Author: aurel32 Date: 2008-10-12 23:32:48 +0000 (Sun, 12 Oct 2008) Log Message: ----------- SH4: fix single-stepping * target-sh/translate.c (gen_intermediate_code_internal): If singlestep is enabled, update PC before stopping. (Vladimir Prus) Modified Paths: -------------- trunk/target-sh4/translate.c Modified: trunk/target-sh4/translate.c =================================================================== --- trunk/target-sh4/translate.c 2008-10-12 23:32:40 UTC (rev 5471) +++ trunk/target-sh4/translate.c 2008-10-12 23:32:48 UTC (rev 5472) @@ -1867,6 +1867,7 @@ if (tb->cflags & CF_LAST_IO) gen_io_end(); if (env->singlestep_enabled) { + tcg_gen_movi_i32(cpu_pc, ctx.pc); tcg_gen_helper_0_0(helper_debug); } else { switch (ctx.bstate) {