Search
lxdream.org :: lxdream :: r910:661367ef919d
lxdream 0.9.1
released Jun 29
Download Now
changeset910:661367ef919d
parent909:b4a21af8ce8c
child911:2f6ba75b84d1
authornkeynes
dateFri Oct 31 01:07:44 2008 +0000 (11 years ago)
Add shortcut test for long writes to the store queue (far and away the most popular P4 write)
src/sh4/sh4mem.c
1.1 --- a/src/sh4/sh4mem.c Thu Oct 30 23:56:59 2008 +0000
1.2 +++ b/src/sh4/sh4mem.c Fri Oct 31 01:07:44 2008 +0000
1.3 @@ -272,7 +272,11 @@
1.4 CHECK_WRITE_WATCH(addr,4,val);
1.5
1.6 if( addr >= 0xE0000000 ) {
1.7 - sh4_write_p4( addr, val );
1.8 + if( addr < 0xE4000000 ) { // Shortcut for the extremely common case
1.9 + SH4_WRITE_STORE_QUEUE( addr, val );
1.10 + } else {
1.11 + sh4_write_p4( addr, val );
1.12 + }
1.13 return;
1.14 } else if( (addr&0x1C000000) == 0x0C000000 ) {
1.15 *(uint32_t *)(sh4_main_ram + (addr&0x00FFFFFF)) = val;
.