filename | src/sh4/sh4core.in |
changeset | 1187:266e7a1bae90 |
prev | 1125:9dd5dee45db9 |
next | 1192:ba3df0bf2c23 |
author | nkeynes |
date | Fri Dec 02 18:14:27 2011 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Handle calls to sh4_disasm_instruction when the memory isn't mapped (as can happen if we try to print a translated block that's been unmapped) |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4core.in Mon Sep 13 10:13:42 2010 +10001.2 +++ b/src/sh4/sh4core.in Fri Dec 02 18:14:27 2011 +10001.3 @@ -47,13 +47,7 @@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.8 - event_execute();1.9 - }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.13 - }1.14 + sh4_handle_pending_events();1.15 }1.16 if( !sh4_execute_instruction() ) {1.17 break;1.18 @@ -62,13 +56,7 @@1.19 } else {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.23 - event_execute();1.24 - }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.28 - }1.29 + sh4_handle_pending_events();1.30 }1.32 if( !sh4_execute_instruction() )
.