diff options
author | 2014-04-29 07:30:32 +0000 | |
---|---|---|
committer | 2014-04-29 07:30:32 +0000 | |
commit | 2aca171f266c6794eac8a5c22687304c52d866c7 (patch) | |
tree | d42eceb4e76d84e31f02880fb6a526c3294ed304 /src/emu/cpu/sh4/sh4comn.c | |
parent | 181f87e14242ed6d845e780924ef0bec457d583d (diff) |
removed usage of legacy IRQ callback (nw)
Diffstat (limited to 'src/emu/cpu/sh4/sh4comn.c')
-rw-r--r-- | src/emu/cpu/sh4/sh4comn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/cpu/sh4/sh4comn.c b/src/emu/cpu/sh4/sh4comn.c index b1e4bdf8acf..673003da20f 100644 --- a/src/emu/cpu/sh4/sh4comn.c +++ b/src/emu/cpu/sh4/sh4comn.c @@ -385,7 +385,7 @@ void sh4_exception(sh4_state *sh4, const char *message, int exception) // handle vector = 0x600; - sh4->irq_callback(sh4->device, INPUT_LINE_NMI); + sh4->irq_callback(*sh4->device, INPUT_LINE_NMI); LOG(("SH-4 '%s' nmi exception after [%s]\n", sh4->device->tag(), message)); } else { // if ((sh4->m[ICR] & 0x4000) && (sh4->nmi_line_state == ASSERT_LINE)) @@ -397,9 +397,9 @@ void sh4_exception(sh4_state *sh4, const char *message, int exception) // handle sh4->m[INTEVT] = exception_codes[exception]; vector = 0x600; if ((exception >= SH4_INTC_IRL0) && (exception <= SH4_INTC_IRL3)) - sh4->irq_callback(sh4->device, SH4_INTC_IRL0-exception+SH4_IRL0); + sh4->irq_callback(*sh4->device, SH4_INTC_IRL0-exception+SH4_IRL0); else - sh4->irq_callback(sh4->device, SH4_IRL3+1); + sh4->irq_callback(*sh4->device, SH4_IRL3+1); LOG(("SH-4 '%s' interrupt exception #%d after [%s]\n", sh4->device->tag(), exception, message)); } } @@ -424,9 +424,9 @@ void sh4_exception(sh4_state *sh4, const char *message, int exception) // handle vector = 0x600; if ((exception >= SH4_INTC_IRL0) && (exception <= SH4_INTC_IRL3)) - sh4->irq_callback(sh4->device, SH4_INTC_IRL0-exception+SH4_IRL0); + sh4->irq_callback(*sh4->device, SH4_INTC_IRL0-exception+SH4_IRL0); else - sh4->irq_callback(sh4->device, SH4_IRL3+1); + sh4->irq_callback(*sh4->device, SH4_IRL3+1); if (sh3_intevt2_exception_codes[exception]==-1) fatalerror("sh3_intevt2_exception_codes unpopulated for exception %02x\n", exception); |