Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
595:68f86ca4bb32 | 596:9853bcce4729 |
---|---|
2167 void init_m68k_opts(m68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks) | 2167 void init_m68k_opts(m68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks) |
2168 { | 2168 { |
2169 memset(opts, 0, sizeof(*opts)); | 2169 memset(opts, 0, sizeof(*opts)); |
2170 opts->gen.address_size = SZ_D; | 2170 opts->gen.address_size = SZ_D; |
2171 opts->gen.address_mask = 0xFFFFFF; | 2171 opts->gen.address_mask = 0xFFFFFF; |
2172 opts->gen.byte_swap = 1; | |
2172 opts->gen.max_address = 0x1000000; | 2173 opts->gen.max_address = 0x1000000; |
2173 opts->gen.bus_cycles = BUS; | 2174 opts->gen.bus_cycles = BUS; |
2174 opts->gen.mem_ptr_off = offsetof(m68k_context, mem_pointers); | 2175 opts->gen.mem_ptr_off = offsetof(m68k_context, mem_pointers); |
2175 opts->gen.ram_flags_off = offsetof(m68k_context, ram_code_flags); | 2176 opts->gen.ram_flags_off = offsetof(m68k_context, ram_code_flags); |
2176 for (int i = 0; i < 8; i++) | 2177 for (int i = 0; i < 8; i++) |