Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 100:995e42e96cc9
prev90:88e4872c2f58
next103:9b9cfc5855e0
author nkeynes
date Wed Feb 15 13:11:50 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Split pvr2.c out to separate files for TA and renderer, minor renames
change pvrdma to use mem_copy_to_sh4
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Sun Jan 22 22:42:53 2006 +0000
1.2 +++ b/src/sh4/sh4mem.c Wed Feb 15 13:11:50 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mem.c,v 1.6 2006-01-22 22:42:53 nkeynes Exp $
1.6 + * $Id: sh4mem.c,v 1.7 2006-02-15 13:11:50 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 @@ -26,6 +26,7 @@
1.11 #include "sh4core.h"
1.12 #include "sh4mmio.h"
1.13 #include "dreamcast.h"
1.14 +#include "pvr2/pvr2.h"
1.15
1.16 #define OC_BASE 0x1C000000
1.17 #define OC_TOP 0x20000000
1.18 @@ -320,7 +321,7 @@
1.19
1.20 void mem_copy_to_sh4( uint32_t destaddr, char *src, size_t count ) {
1.21 if( destaddr >= 0x10000000 && destaddr < 0x20000000 ) {
1.22 - pvr2ta_write( src, count );
1.23 + pvr2_ta_write( src, count );
1.24 } else if( destaddr >= 04000000 && destaddr < 0x5000000 ) {
1.25 /* 64-bit video write. Oh. Yuck */
1.26 uint32_t *dest32[2];
.