Mercurial > repos > blastem
diff m68k_core.h @ 690:fc04781f4d28
Removed hardcoded assumptions in M68K core about which parts of the memory map are RAM
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 14 Jan 2015 09:38:54 -0800 |
parents | 30ccf56842d6 |
children | 7367b14ac01c |
line wrap: on
line diff
--- a/m68k_core.h Thu Jan 08 23:20:41 2015 -0800 +++ b/m68k_core.h Wed Jan 14 09:38:54 2015 -0800 @@ -60,15 +60,15 @@ native_map_slot *native_code_map; m68k_options *options; - uint8_t ram_code_flags[32/8]; void *system; + uint8_t ram_code_flags[]; } m68k_context; void translate_m68k(m68k_options * opts, struct m68kinst * inst); void translate_m68k_stream(uint32_t address, m68k_context * context); void start_68k_context(m68k_context * context, uint32_t address); void init_m68k_opts(m68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks, uint32_t clock_divider); -void init_68k_context(m68k_context * context, native_map_slot * native_code_map, void * opts); +m68k_context * init_68k_context(m68k_options * opts); void m68k_reset(m68k_context * context); void insert_breakpoint(m68k_context * context, uint32_t address, uint8_t * bp_handler); void remove_breakpoint(m68k_context * context, uint32_t address);