# HG changeset patch # User Michael Pavone # Date 1419626247 28800 # Node ID 9853bcce4729838306526b5d814652c85072056c # Parent 68f86ca4bb3244a112e96260a79c7acaabb232f6 Set the byte_swap flag in the M68K core so gen_mem_fun correctly inserts xor instructions for byte access functions diff -r 68f86ca4bb32 -r 9853bcce4729 m68k_core_x86.c --- 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);