Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 430:467519b050f4
prev422:61a0598e07ff
next448:3e5f0c52f0ec
author nkeynes
date Mon Oct 08 12:09:06 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Sat Oct 06 09:03:24 2007 +0000
1.2 +++ b/src/sh4/sh4mem.c Mon Oct 08 12:09:06 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mem.c,v 1.27 2007-10-06 09:03:24 nkeynes Exp $
1.6 + * $Id: sh4mem.c,v 1.28 2007-10-08 12:09:06 nkeynes Exp $
1.7 * sh4mem.c is responsible for the SH4's access to memory (including memory
1.8 * mapped I/O), using the page maps created in mem.c
1.9 *
1.10 @@ -358,7 +358,7 @@
1.11 /* FIXME: Handle all the many special cases when the range doesn't fall cleanly
1.12 * into the same memory block
1.13 */
1.14 -void mem_copy_from_sh4( char *dest, uint32_t srcaddr, size_t count ) {
1.15 +void mem_copy_from_sh4( unsigned char *dest, uint32_t srcaddr, size_t count ) {
1.16 if( srcaddr >= 0x04000000 && srcaddr < 0x05000000 ) {
1.17 pvr2_vram64_read( dest, srcaddr, count );
1.18 } else {
1.19 @@ -371,7 +371,7 @@
1.20 }
1.21 }
1.22
1.23 -void mem_copy_to_sh4( uint32_t destaddr, char *src, size_t count ) {
1.24 +void mem_copy_to_sh4( uint32_t destaddr, unsigned char *src, size_t count ) {
1.25 if( destaddr >= 0x10000000 && destaddr < 0x14000000 ) {
1.26 pvr2_dma_write( destaddr, src, count );
1.27 return;
1.28 @@ -394,7 +394,7 @@
1.29 {
1.30 /* Store queue operation */
1.31 int queue = (addr&0x20)>>2;
1.32 - char *src = (char *)&sh4r.store_queue[queue];
1.33 + unsigned char *src = (unsigned char *)&sh4r.store_queue[queue];
1.34 uint32_t hi = (MMIO_READ( MMU, (queue == 0 ? QACR0 : QACR1) ) & 0x1C) << 24;
1.35 uint32_t target = (addr&0x03FFFFE0) | hi;
1.36 mem_copy_to_sh4( target, src, 32 );
.