Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 945:787729653236
prev939:6f2302afeb89
next1067:d3c00ffccfcd
author nkeynes
date Mon Jan 05 04:19:46 2009 +0000 (12 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Move address space decls to mmu.h
Finally remove sh4_read_long and friends
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Sat Jan 03 03:30:26 2009 +0000
1.2 +++ b/src/sh4/sh4mem.c Mon Jan 05 04:19:46 2009 +0000
1.3 @@ -28,40 +28,11 @@
1.4 #include "sh4/sh4core.h"
1.5 #include "sh4/sh4mmio.h"
1.6 #include "sh4/xltcache.h"
1.7 +#include "sh4/mmu.h"
1.8 #include "pvr2/pvr2.h"
1.9
1.10 /************** Obsolete methods ***************/
1.11
1.12 -int32_t FASTCALL sh4_read_long( sh4addr_t addr )
1.13 -{
1.14 - return sh4_address_space[addr>>12]->read_long(addr);
1.15 -}
1.16 -
1.17 -int32_t FASTCALL sh4_read_word( sh4addr_t addr )
1.18 -{
1.19 - return sh4_address_space[addr>>12]->read_word(addr);
1.20 -}
1.21 -
1.22 -int32_t FASTCALL sh4_read_byte( sh4addr_t addr )
1.23 -{
1.24 - return sh4_address_space[addr>>12]->read_byte(addr);
1.25 -}
1.26 -
1.27 -void FASTCALL sh4_write_long( sh4addr_t addr, uint32_t val )
1.28 -{
1.29 - sh4_address_space[addr>>12]->write_long(addr, val);
1.30 -}
1.31 -
1.32 -void FASTCALL sh4_write_word( sh4addr_t addr, uint32_t val )
1.33 -{
1.34 - sh4_address_space[addr>>12]->write_word(addr,val);
1.35 -}
1.36 -
1.37 -void FASTCALL sh4_write_byte( sh4addr_t addr, uint32_t val )
1.38 -{
1.39 - sh4_address_space[addr>>12]->write_byte(addr, val);
1.40 -}
1.41 -
1.42 /* FIXME: Handle all the many special cases when the range doesn't fall cleanly
1.43 * into the same memory block
1.44 */
.