revision 910:661367ef919d
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 910:661367ef919d |
parent | 909:b4a21af8ce8c |
child | 911:2f6ba75b84d1 |
author | nkeynes |
date | Fri Oct 31 01:07:44 2008 +0000 (15 years ago) |
Add shortcut test for long writes to the store queue (far and away the most popular P4 write)
src/sh4/sh4mem.c | view | annotate | diff | log |
1.1 --- a/src/sh4/sh4mem.c Thu Oct 30 23:56:59 2008 +00001.2 +++ b/src/sh4/sh4mem.c Fri Oct 31 01:07:44 2008 +00001.3 @@ -272,7 +272,11 @@1.4 CHECK_WRITE_WATCH(addr,4,val);1.6 if( addr >= 0xE0000000 ) {1.7 - sh4_write_p4( addr, val );1.8 + if( addr < 0xE4000000 ) { // Shortcut for the extremely common case1.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;
.