From 6daf552fd89b9fcac81c5f54f90c23a94c5c6a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 7 Aug 2014 16:39:28 +0000 Subject: [PATCH] sh4: fixed irqline usage in case of certain SH3 exceptions (nw) --- src/emu/cpu/sh4/sh4comn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/cpu/sh4/sh4comn.c b/src/emu/cpu/sh4/sh4comn.c index 4fd6b9808ef..fa5b4caf19d 100644 --- a/src/emu/cpu/sh4/sh4comn.c +++ b/src/emu/cpu/sh4/sh4comn.c @@ -395,7 +395,7 @@ void sh34_base_device::sh4_exception(const char *message, int exception) // hand m_m[INTEVT] = exception_codes[exception]; vector = 0x600; if ((exception >= SH4_INTC_IRL0) && (exception <= SH4_INTC_IRL3)) - standard_irq_callback(SH4_INTC_IRL0-exception+SH4_IRL0); + standard_irq_callback((exception-SH4_INTC_IRL0)+SH4_IRL0); else standard_irq_callback(SH4_IRL3+1); LOG(("SH-4 '%s' interrupt exception #%d after [%s]\n", tag(), exception, message)); @@ -422,7 +422,7 @@ void sh34_base_device::sh4_exception(const char *message, int exception) // hand vector = 0x600; if ((exception >= SH4_INTC_IRL0) && (exception <= SH4_INTC_IRL3)) - standard_irq_callback(SH4_INTC_IRL0-exception+SH4_IRL0); + standard_irq_callback((exception-SH4_INTC_IRL0)+SH4_IRL0); else standard_irq_callback(SH4_IRL3+1);