diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-01-31 22:05:10 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-01-31 22:05:10 -0800 |
commit | c2653ab569c2a0139089db6586f1213884b03b2c (patch) | |
tree | 256e5c28b18ebc394c19cff6bc2768259b8f7379 /backend.c | |
parent | aeb32eebf529a82a624f2c88f51a7706aad0bcc5 (diff) |
Made the NOR flash emulation a bit more flexible, but not yet flexible enough to properly support the flash chip in the MegaWiFi cart
Diffstat (limited to 'backend.c')
-rw-r--r-- | backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -75,7 +75,7 @@ void * get_native_pointer(uint32_t address, void ** mem_pointers, cpu_options * for (uint32_t chunk = 0; chunk < opts->memmap_chunks; chunk++) { if (address >= memmap[chunk].start && address < memmap[chunk].end) { - if (!(memmap[chunk].flags & MMAP_READ)) { + if (!(memmap[chunk].flags & (MMAP_READ|MMAP_READ_CODE))) { return NULL; } uint8_t * base = memmap[chunk].flags & MMAP_PTR_IDX |