From 58056e06047d7777dbb2fe500fe6801fa92785f9 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 26 Dec 2014 12:37:27 -0800 Subject: Set the byte_swap flag in the M68K core so gen_mem_fun correctly inserts xor instructions for byte access functions --- m68k_core_x86.c | 1 + 1 file changed, 1 insertion(+) (limited to 'm68k_core_x86.c') diff --git a/m68k_core_x86.c b/m68k_core_x86.c index 18feea7..0f89a82 100644 --- a/m68k_core_x86.c +++ b/m68k_core_x86.c @@ -2169,6 +2169,7 @@ void init_m68k_opts(m68k_options * opts, memmap_chunk * memmap, uint32_t num_chu memset(opts, 0, sizeof(*opts)); opts->gen.address_size = SZ_D; opts->gen.address_mask = 0xFFFFFF; + opts->gen.byte_swap = 1; opts->gen.max_address = 0x1000000; opts->gen.bus_cycles = BUS; opts->gen.mem_ptr_off = offsetof(m68k_context, mem_pointers); -- cgit v1.2.3