1.1 --- a/src/sh4/sh4core.in Mon Sep 13 10:13:42 2010 +1000
1.2 +++ b/src/sh4/sh4core.in Tue Nov 29 17:52:43 2011 +1000
1.4 if( sh4_breakpoint_count == 0 ) {
1.5 for( ; sh4r.slice_cycle < nanosecs; sh4r.slice_cycle += sh4_cpu_period ) {
1.6 if( SH4_EVENT_PENDING() ) {
1.7 - if( sh4r.event_types & PENDING_EVENT ) {
1.10 - /* Eventq execute may (quite likely) deliver an immediate IRQ */
1.11 - if( sh4r.event_types & PENDING_IRQ ) {
1.12 - sh4_accept_interrupt();
1.14 + sh4_handle_pending_events();
1.16 if( !sh4_execute_instruction() ) {
1.20 for( ;sh4r.slice_cycle < nanosecs; sh4r.slice_cycle += sh4_cpu_period ) {
1.21 if( SH4_EVENT_PENDING() ) {
1.22 - if( sh4r.event_types & PENDING_EVENT ) {
1.25 - /* Eventq execute may (quite likely) deliver an immediate IRQ */
1.26 - if( sh4r.event_types & PENDING_IRQ ) {
1.27 - sh4_accept_interrupt();
1.29 + sh4_handle_pending_events();
1.32 if( !sh4_execute_instruction() )