aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/sim-if.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-05-19 23:52:23 +0000
committerDoug Evans <dje@google.com>1998-05-19 23:52:23 +0000
commitf99354d0c0787edfbeb0ab9517a407df86a29c3c (patch)
tree3ac71f6bf60d88e9603b5685a2034c94718d0015 /sim/m32r/sim-if.c
parent71842815b0221d8a03c41fff2d87dd24f1eead18 (diff)
downloadgdb-f99354d0c0787edfbeb0ab9517a407df86a29c3c.zip
gdb-f99354d0c0787edfbeb0ab9517a407df86a29c3c.tar.gz
gdb-f99354d0c0787edfbeb0ab9517a407df86a29c3c.tar.bz2
* sim-if.c (do_trap): Treat traps 2-15 as hardware does.
Diffstat (limited to 'sim/m32r/sim-if.c')
-rw-r--r--sim/m32r/sim-if.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/m32r/sim-if.c b/sim/m32r/sim-if.c
index 4e1c983..36c1644 100644
--- a/sim/m32r/sim-if.c
+++ b/sim/m32r/sim-if.c
@@ -487,8 +487,10 @@ do_trap (SIM_CPU *current_cpu, int num)
break;
default :
- /* Unless in the operating environment, ignore other traps. */
- break;
+ {
+ USI new_pc = num * 4;
+ return new_pc;
+ }
}
/* Fake an "rte" insn. */