From c2653ab569c2a0139089db6586f1213884b03b2c Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 31 Jan 2018 22:05:10 -0800 Subject: Made the NOR flash emulation a bit more flexible, but not yet flexible enough to properly support the flash chip in the MegaWiFi cart --- backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend.c') 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 -- cgit v1.2.3