Passify GCC.
[deliverable/binutils-gdb.git] / sim / common / genmloop.sh
index e97878ca9c22676dd4afcf585a75c875b26ef09d..fb352205753e07ac541cb3c1914b61176091711d 100644 (file)
@@ -35,8 +35,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "sim-main.h"
 #include "bfd.h"
-#include "cgen-mem.h"
-#include "cgen-sem.h"
+#include "mem-ops.h"
+#include "sem-ops.h"
 #include "cgen-scache.h"
 #include "cpu-opc.h"
 #include "cpu-sim.h"
@@ -161,6 +161,8 @@ cat <<EOF
            engine_halt (current_cpu, EXEC_STATE_STOPPED, SIM_SIGTRAP);
        }
       while (keep_running);
+      /* If the loop exists, engine_stop was called.  */
+      engine_halt (current_cpu, EXEC_STATE_STOPPED, SIM_SIGINT);
 #undef FAST
     }
   else
@@ -180,6 +182,8 @@ cat <<EOF
          ++insn_count;
         }
       while (keep_running);
+      /* If the loop exists, engine_stop was called.  */
+      engine_halt (current_cpu, EXEC_STATE_STOPPED, SIM_SIGINT);
     }
 }
 EOF
This page took 0.022855 seconds and 4 git commands to generate.