Search
lxdream.org :: lxdream/src/mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/mem.c
changeset 946:d41ee7994db7
prev939:6f2302afeb89
next1067:d3c00ffccfcd
author nkeynes
date Tue Jan 06 01:58:08 2009 +0000 (13 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Fully integrate SQ with the new address space code - added additional 'prefetch'
memory accessor. TLB is utterly untested, but non-TLB at least still works.
file annotate diff log raw
1.1 --- a/src/mem.c Sat Jan 03 03:30:26 2009 +0000
1.2 +++ b/src/mem.c Tue Jan 06 01:58:08 2009 +0000
1.3 @@ -78,11 +78,17 @@
1.4 {
1.5 }
1.6
1.7 +void FASTCALL unmapped_prefetch( sh4addr_t addr )
1.8 +{
1.9 + /* No effect */
1.10 +}
1.11 +
1.12 struct mem_region_fn mem_region_unmapped = {
1.13 unmapped_read_long, unmapped_write_long,
1.14 unmapped_read_long, unmapped_write_long,
1.15 unmapped_read_long, unmapped_write_long,
1.16 - unmapped_read_burst, unmapped_write_burst };
1.17 + unmapped_read_burst, unmapped_write_burst,
1.18 + unmapped_prefetch };
1.19
1.20 void *mem_alloc_pages( int n )
1.21 {
1.22 @@ -319,6 +325,7 @@
1.23 mem_rgn[num_mem_rgns].name = name;
1.24 mem_rgn[num_mem_rgns].mem = mem;
1.25 mem_rgn[num_mem_rgns].fn = fn;
1.26 + fn->prefetch = unmapped_prefetch;
1.27 num_mem_rgns++;
1.28
1.29 do {
.