1.1 --- a/src/sh4/sh4.c Sun Nov 27 18:20:21 2011 +1000
1.2 +++ b/src/sh4/sh4.c Tue Nov 29 17:52:43 2011 +1000
1.7 +void sh4_set_event_pending( uint32_t cycles )
1.9 + sh4r.event_pending = cycles;
1.13 * Dump all SH4 core information for crash-dump purposes
1.15 @@ -664,6 +669,16 @@
1.16 return addr != MMU_VMA_ERROR && mem_has_page(addr);
1.19 +void sh4_handle_pending_events() {
1.20 + if( sh4r.event_types & PENDING_EVENT ) {
1.23 + /* Eventq execute may (quite likely) deliver an immediate IRQ */
1.24 + if( sh4r.event_types & PENDING_IRQ ) {
1.25 + sh4_accept_interrupt();
1.30 * Go through ext_address_space page by page