Search
lxdream.org :: lxdream/src/mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/mem.c
changeset 669:ab344e42bca9
prev586:2a3ba82cf243
next674:377d987db8f2
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
file annotate diff log raw
1.1 --- a/src/mem.c Tue Jan 15 20:50:23 2008 +0000
1.2 +++ b/src/mem.c Mon May 12 10:00:13 2008 +0000
1.3 @@ -365,6 +365,13 @@
1.4 }
1.5 }
1.6
1.7 +void mem_write_long( sh4addr_t addr, uint32_t value )
1.8 +{
1.9 + sh4ptr_t ptr = mem_get_region(addr);
1.10 + assert(ptr != NULL);
1.11 + *((uint32_t *)ptr) = value;
1.12 +}
1.13 +
1.14 struct mmio_region *mem_get_io_region( uint32_t addr )
1.15 {
1.16 if( addr > 0xFF000000 ) {
.