summaryrefslogtreecommitdiff
path: root/m68k_core_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-12-28 20:39:27 -0800
committerMichael Pavone <pavone@retrodev.com>2016-12-28 20:39:27 -0800
commit67b7c359a5a73f01eeba37af2d5fbae1027b4a7a (patch)
treef2542e2c1a6fc6ae59792e22cbc265e4267d78b6 /m68k_core_x86.c
parent96d5581219aec6c49fadaaf1d30623c0f2eed358 (diff)
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
Diffstat (limited to 'm68k_core_x86.c')
-rw-r--r--m68k_core_x86.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/m68k_core_x86.c b/m68k_core_x86.c
index c1ba19d..0d68492 100644
--- a/m68k_core_x86.c
+++ b/m68k_core_x86.c
@@ -2266,8 +2266,7 @@ void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst)
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);