From 3d6c6a85eb59936685107538ef2b47ab70acacb9 Mon Sep 17 00:00:00 2001 From: dinkc64 <12570148+dinkc64@users.noreply.github.com> Date: Fri, 30 May 2014 06:41:51 +0000 Subject: [PATCH] SH-2 CPU - fix for skipped timer events with Sh2BurnUntilInt(); --- src/cpu/sh2/sh2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpu/sh2/sh2.cpp b/src/cpu/sh2/sh2.cpp index 57440c9a8..368d0aafe 100644 --- a/src/cpu/sh2/sh2.cpp +++ b/src/cpu/sh2/sh2.cpp @@ -3321,13 +3321,13 @@ int Sh2Run(int cycles) do { - if ( pSh2Ext->suspend ) { + /*if ( pSh2Ext->suspend ) { sh2->sh2_total_cycles += cycles; sh2->sh2_icount = 0; break; - } - - UINT16 opcode; + }*/ + if (!pSh2Ext->suspend) { + UINT16 opcode; if (sh2->delay) { //opcode = cpu_readop16(WORD_XOR_BE((UINT32)(sh2->delay & AM))); @@ -3361,7 +3361,7 @@ int Sh2Run(int cycles) case 14<<12: op1110(opcode); break; default: op1111(opcode); break; } - + } #endif if(sh2->test_irq && !sh2->delay)