Mercurial > repos > blastem
diff m68k_core.c @ 2244:e6bad7bd8751
merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 22 Nov 2022 23:07:41 -0800 |
parents | 31fc1186ffbb |
children | 0111c8344477 |
line wrap: on
line diff
--- a/m68k_core.c Tue Nov 22 17:57:02 2022 -0800 +++ b/m68k_core.c Tue Nov 22 23:07:41 2022 -0800 @@ -1037,14 +1037,18 @@ memmap_chunk const *chunk = find_map_chunk(address, &opts->gen, 0, NULL); if (!chunk) { code_ptr start = code->cur; - defer_translation(&opts->gen, address, opts->retrans_stub); + translate_out_of_bounds(opts, address); code_ptr after = code->cur; map_native_address(context, address, start, 2, after-start); break; } if (!(chunk->flags & MMAP_READ)) { code_ptr start = code->cur; - defer_translation(&opts->gen, address, opts->retrans_stub); + if (chunk->flags & MMAP_CODE) { + defer_translation(&opts->gen, address, opts->retrans_stub); + } else { + translate_out_of_bounds(opts, address); + } code_ptr after = code->cur; map_native_address(context, address, start, 2, after-start); break;