diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-12-26 12:37:27 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-12-26 12:37:27 -0800 |
commit | 58056e06047d7777dbb2fe500fe6801fa92785f9 (patch) | |
tree | 121b76864a2022fe475f46491f4eba74f078c62f /m68k_core_x86.c | |
parent | d53d8f8d28c067bd80c5a66607973f5b125a0034 (diff) |
Set the byte_swap flag in the M68K core so gen_mem_fun correctly inserts xor instructions for byte access functions
Diffstat (limited to 'm68k_core_x86.c')
-rw-r--r-- | m68k_core_x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |