Mercurial > repos > blastem
diff m68k_core_x86.c @ 1130:8f14767661fa
Remove memory map assumptions from Z80 core and move a little bit of logic to the generic backend.c so it can be shared between CPU cores
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 28 Dec 2016 20:39:27 -0800 |
parents | 2eb54e24914e |
children | e0fc8967d380 |
line wrap: on
line diff
--- a/m68k_core_x86.c Wed Dec 28 12:28:52 2016 -0800 +++ b/m68k_core_x86.c Wed Dec 28 20:39:27 2016 -0800 @@ -2266,8 +2266,7 @@ m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context) { m68k_options * options = context->options; - //TODO: Modify gen_mem_fun so that it passes the raw address instead of the masked one, then remove the OR below - uint32_t inst_start = get_instruction_start(options, context->native_code_map, address); + uint32_t inst_start = get_instruction_start(options, address); if (inst_start) { code_info *code = &options->gen.code; code_ptr dst = get_native_address(context->options, inst_start);