summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/sh4/sh4comn.c
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-08-07 16:39:28 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-08-07 16:39:28 +0000
commit6daf552fd89b9fcac81c5f54f90c23a94c5c6a70 (patch)
tree0db621eccecefc9a84e5731b467237adebc0e231 /src/emu/cpu/sh4/sh4comn.c
parentd4924585a9c2d161923c3ab3822fc2ebd44f6369 (diff)
sh4: fixed irqline usage in case of certain SH3 exceptions (nw)
Diffstat (limited to 'src/emu/cpu/sh4/sh4comn.c')
-rw-r--r--src/emu/cpu/sh4/sh4comn.c4
1 files 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);