summaryrefslogtreecommitdiff
path: root/m68k_core_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-10-06 21:11:58 -0700
committerMichael Pavone <pavone@retrodev.com>2016-10-06 21:11:58 -0700
commit3a0fa2a3fde5b7f9ec908f3892ce06b9fd640500 (patch)
tree81a14c2c3f5bf0add5389e90b4e5cad7fee8f137 /m68k_core_x86.c
parentcab3bd73c9a9110b5c70f7f692b1afeacc9858b9 (diff)
Remove hacky assumption about Genesis memory map in M68K core
Diffstat (limited to 'm68k_core_x86.c')
-rw-r--r--m68k_core_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/m68k_core_x86.c b/m68k_core_x86.c
index 6ad305d..ad64cd1 100644
--- a/m68k_core_x86.c
+++ b/m68k_core_x86.c
@@ -2267,7 +2267,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 | 0xE00000);
+ uint32_t inst_start = get_instruction_start(options, context->native_code_map, address);
if (inst_start) {
code_info *code = &options->gen.code;
code_ptr dst = get_native_address(context->options, inst_start);