summaryrefslogtreecommitdiff
path: root/backend.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-01-31 22:05:10 -0800
committerMichael Pavone <pavone@retrodev.com>2018-01-31 22:05:10 -0800
commitc2653ab569c2a0139089db6586f1213884b03b2c (patch)
tree256e5c28b18ebc394c19cff6bc2768259b8f7379 /backend.c
parentaeb32eebf529a82a624f2c88f51a7706aad0bcc5 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.c b/backend.c
index 08601da..acf66d5 100644
--- a/backend.c
+++ b/backend.c
@@ -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