filename | src/mem.c |
changeset | 975:007bf7eb944f |
prev | 968:6fb1481859a4 |
next | 986:5090104b0963 |
author | nkeynes |
date | Mon Jan 26 07:26:24 2009 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Add read_byte_for_write mem function for correct implementation of AND.B and friends with TLB enabled. Add read_byte and read_long MMIO stubs to do correct sign extension of IO reads |
file | annotate | diff | log | raw |
1.1 --- a/src/mem.c Thu Jan 15 11:23:20 2009 +00001.2 +++ b/src/mem.c Mon Jan 26 07:26:24 2009 +00001.3 @@ -88,7 +88,7 @@1.4 unmapped_read_long, unmapped_write_long,1.5 unmapped_read_long, unmapped_write_long,1.6 unmapped_read_burst, unmapped_write_burst,1.7 - unmapped_prefetch };1.8 + unmapped_prefetch, unmapped_read_long };1.10 void *mem_alloc_pages( int n )1.11 {1.12 @@ -327,6 +327,7 @@1.13 mem_rgn[num_mem_rgns].mem = mem;1.14 mem_rgn[num_mem_rgns].fn = fn;1.15 fn->prefetch = unmapped_prefetch;1.16 + fn->read_byte_for_write = fn->read_byte;1.17 num_mem_rgns++;1.19 do {
.