Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 1112:4cac5e474d4c
prev1091:186558374345
next1125:9dd5dee45db9
author nkeynes
date Tue Jul 13 18:23:16 2010 +1000 (12 years ago)
permissions -rw-r--r--
last change Rearrange the main translation loop to allow translated blocks to jump
directly to their successors without needing to return to the main loop
in between. Shaves about 6% off the core runtime.
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Tue Dec 15 08:46:37 2009 +1000
1.2 +++ b/src/sh4/sh4.c Tue Jul 13 18:23:16 2010 +1000
1.3 @@ -153,6 +153,13 @@
1.4 static gboolean sh4_running = FALSE;
1.5 struct sh4_icache_struct sh4_icache = { NULL, -1, -1, 0 };
1.6
1.7 +/* At the moment this is a dummy event to mark the end of the
1.8 + * timeslice
1.9 + */
1.10 +void sh4_dummy_event(int eventid)
1.11 +{
1.12 +}
1.13 +
1.14 void sh4_translate_set_enabled( gboolean use )
1.15 {
1.16 // No-op if the translator was not built
1.17 @@ -172,6 +179,7 @@
1.18 void sh4_init(void)
1.19 {
1.20 register_io_regions( mmio_list_sh4mmio );
1.21 + register_event_callback( EVENT_ENDTIMESLICE, sh4_dummy_event );
1.22 MMU_init();
1.23 TMU_init();
1.24 xlat_cache_init();
.