* sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
authorDoug Evans <dje@google.com>
Wed, 19 Nov 1997 02:37:58 +0000 (02:37 +0000)
committerDoug Evans <dje@google.com>
Wed, 19 Nov 1997 02:37:58 +0000 (02:37 +0000)
* sim-break.c (sim_handle_breakpoint): Likewise.

sim/common/ChangeLog
sim/common/sim-break.c

index 4d47224a9bee8f004cea3088e1ce8e43c90eaeef..1073dfdb5e56035412ec7f8d9ff360f569edee7c 100644 (file)
@@ -4,6 +4,7 @@ Tue Nov 18 15:53:45 1997  Doug Evans  <devans@canuck.cygnus.com>
 
        * sim-base.h (CIA_ADDR): Provide default definition.
        * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
+       * sim-break.c (sim_handle_breakpoint): Likewise.
 
 Mon Nov 17 14:15:31 1997  Doug Evans  <devans@seba.cygnus.com>
 
index d735c8572dd3de74732545e0cd6f0f2d018727e1..1478278cb1495858089bb7f345e8cce507858e3d 100644 (file)
@@ -98,7 +98,7 @@ sim_handle_breakpoint (sd, cpu, cia)
   struct sim_breakpoint *bp;
 
   for (bp = STATE_BREAKPOINTS (sd); bp; bp = bp->next)
-    if (bp->addr == cia)
+    if (bp->addr == CIA_ADDR (cia))
       break;
 
   if (!bp || !(bp->flags & SIM_BREAK_INSERTED))