diff m68k_core_x86.c @ 596:9853bcce4729

Set the byte_swap flag in the M68K core so gen_mem_fun correctly inserts xor instructions for byte access functions
author Michael Pavone <pavone@retrodev.com>
date Fri, 26 Dec 2014 12:37:27 -0800
parents ea80559c67cb
children f0061e3d2ad9
line wrap: on
line diff
--- a/m68k_core_x86.c	Fri Dec 26 12:36:54 2014 -0800
+++ b/m68k_core_x86.c	Fri Dec 26 12:37:27 2014 -0800
@@ -2169,6 +2169,7 @@
 	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);