qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5472] SH4: fix single-stepping


From: Aurelien Jarno
Subject: [Qemu-devel] [5472] SH4: fix single-stepping
Date: Sun, 12 Oct 2008 23:32:49 +0000

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) {






reply via email to

[Prev in Thread] Current Thread [Next in Thread]