comparison backend.c @ 654:98927f1b005b

Fix some issues with 68K instruction retranslation
author Michael Pavone <pavone@retrodev.com>
date Thu, 01 Jan 2015 17:31:59 -0800
parents a18e3923481e
children fc04781f4d28
comparison
equal deleted inserted replaced
653:a18e3923481e 654:98927f1b005b
51 } 51 }
52 } 52 }
53 53
54 void * get_native_pointer(uint32_t address, void ** mem_pointers, cpu_options * opts) 54 void * get_native_pointer(uint32_t address, void ** mem_pointers, cpu_options * opts)
55 { 55 {
56 memmap_chunk * memmap = opts->memmap; 56 memmap_chunk const * memmap = opts->memmap;
57 address &= opts->address_mask; 57 address &= opts->address_mask;
58 for (uint32_t chunk = 0; chunk < opts->memmap_chunks; chunk++) 58 for (uint32_t chunk = 0; chunk < opts->memmap_chunks; chunk++)
59 { 59 {
60 if (address >= memmap[chunk].start && address < memmap[chunk].end) { 60 if (address >= memmap[chunk].start && address < memmap[chunk].end) {
61 if (!(memmap[chunk].flags & MMAP_READ)) { 61 if (!(memmap[chunk].flags & MMAP_READ)) {