Mercurial > repos > blastem
changeset 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 | 68f86ca4bb32 |
children | 8d6ae5b3b87b |
files | m68k_core_x86.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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);