* interp.c (sim_resume): Fix setting of bus error for
authorJoern Rennecke <joern.rennecke@embecosm.com>
Tue, 18 Jun 2002 15:54:44 +0000 (15:54 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Tue, 18 Jun 2002 15:54:44 +0000 (15:54 +0000)
instruction fetch.

sim/sh/ChangeLog
sim/sh/interp.c

index a18645f683bd23543c2a659ab4dcbff5916a7990..d8a8f70ef4330b950970a6f1206f261cff21caec 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jun 18 16:53:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * interp.c (sim_resume): Fix setting of bus error for
+       instruction fetch.
+
 2002-06-16  Andrew Cagney  <ac131313@redhat.com>
 
        * configure: Regenerated to track ../common/aclocal.m4 changes.
index 286dd2dccba4ed9abbc95a0ac42c9e5b100c19b8..6abff0050a2a4dbe5a1963f03c28958edd37d9fe 100644 (file)
@@ -1717,7 +1717,7 @@ sim_resume (sd, step, siggnal)
     }
   /* Check for SIGBUS due to insn fetch.  */
   else if (! saved_state.asregs.exception)
-    saved_state.asregs.exception == SIGBUS;
+    saved_state.asregs.exception = SIGBUS;
 
   saved_state.asregs.ticks += get_now () - tick_start;
   saved_state.asregs.cycles += cycles;