aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/interp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/v850/interp.c')
-rw-r--r--sim/v850/interp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/v850/interp.c b/sim/v850/interp.c
index e77cb48..753996f 100644
--- a/sim/v850/interp.c
+++ b/sim/v850/interp.c
@@ -63,7 +63,9 @@ do_interrupt (sd, data)
SIM_DESC sd;
void *data;
{
- enum interrupt_type inttype = *(int*)data;
+ char **interrupt_name = (char**)data;
+ enum interrupt_type inttype;
+ inttype = (interrupt_name - STATE_WATCHPOINTS (sd)->interrupt_names);
/* Disable further interrupts. */
PSW |= PSW_ID;
/* Indicate that we're doing interrupt not exception processing. */