Previous 199869 Revisions Next

r31549 Thursday 7th August, 2014 at 16:39:28 UTC by Oliver Stöneberg
sh4: fixed irqline usage in case of certain SH3 exceptions (nw)
[src/emu/cpu/sh4]sh4comn.c

trunk/src/emu/cpu/sh4/sh4comn.c
r31548r31549
395395         m_m[INTEVT] = exception_codes[exception];
396396         vector = 0x600;
397397         if ((exception >= SH4_INTC_IRL0) && (exception <= SH4_INTC_IRL3))
398            standard_irq_callback(SH4_INTC_IRL0-exception+SH4_IRL0);
398            standard_irq_callback((exception-SH4_INTC_IRL0)+SH4_IRL0);
399399         else
400400            standard_irq_callback(SH4_IRL3+1);
401401         LOG(("SH-4 '%s' interrupt exception #%d after [%s]\n", tag(), exception, message));
r31548r31549
422422         vector = 0x600;
423423
424424         if ((exception >= SH4_INTC_IRL0) && (exception <= SH4_INTC_IRL3))
425            standard_irq_callback(SH4_INTC_IRL0-exception+SH4_IRL0);
425            standard_irq_callback((exception-SH4_INTC_IRL0)+SH4_IRL0);
426426         else
427427            standard_irq_callback(SH4_IRL3+1);
428428

Previous 199869 Revisions Next


© 1997-2024 The MAME Team