Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 911:2f6ba75b84d1
prev910:661367ef919d
next912:c5606ea44232
author nkeynes
date Fri Oct 31 02:57:59 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Declare mem_copy_* functions as FASTCALL
Split sh4_flush_store_queue into TLB/non-TLB versions, and optimize
slightly based on that
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Fri Oct 31 01:07:44 2008 +0000
1.2 +++ b/src/sh4/sh4mem.c Fri Oct 31 02:57:59 2008 +0000
1.3 @@ -400,7 +400,7 @@
1.4 /* FIXME: Handle all the many special cases when the range doesn't fall cleanly
1.5 * into the same memory block
1.6 */
1.7 -void mem_copy_from_sh4( sh4ptr_t dest, sh4addr_t srcaddr, size_t count ) {
1.8 +void FASTCALL mem_copy_from_sh4( sh4ptr_t dest, sh4addr_t srcaddr, size_t count ) {
1.9 if( srcaddr >= 0x04000000 && srcaddr < 0x05000000 ) {
1.10 pvr2_vram64_read( dest, srcaddr, count );
1.11 } else {
1.12 @@ -413,7 +413,7 @@
1.13 }
1.14 }
1.15
1.16 -void mem_copy_to_sh4( sh4addr_t destaddr, sh4ptr_t src, size_t count ) {
1.17 +void FASTCALL mem_copy_to_sh4( sh4addr_t destaddr, sh4ptr_t src, size_t count ) {
1.18 if( destaddr >= 0x10000000 && destaddr < 0x14000000 ) {
1.19 pvr2_dma_write( destaddr, src, count );
1.20 return;
.