Mercurial > repos > blastem
diff backend.h @ 567:8e395210f50f
Refactor gen_x86 to use an interface more like gen_arm and to remove the need for the caller to decide whether an 8-bit or 32-bit displacement is needed in the rdisp functions. Update m68k_to_x86 to use the new version of the gen_x86 functions and do some minor refactoring there in the process
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 02 Mar 2014 14:45:36 -0800 |
parents | c8fefa140c80 |
children | c05fcbfe1b1a |
line wrap: on
line diff
--- a/backend.h Sun Mar 02 14:41:43 2014 -0800 +++ b/backend.h Sun Mar 02 14:45:36 2014 -0800 @@ -43,8 +43,7 @@ uint32_t flags; native_map_slot *native_code_map; deferred_addr *deferred; - code_ptr cur_code; - code_ptr code_end; + code_info code; uint8_t **ram_inst_sizes; code_ptr save_context; code_ptr load_context; @@ -90,5 +89,9 @@ void remove_deferred_until(deferred_addr **head_ptr, deferred_addr * remove_to); void process_deferred(deferred_addr ** head_ptr, void * context, native_addr_func get_native); +void cycles(cpu_options *opts, uint32_t num); +void check_cycles_int(cpu_options *opts, uint32_t address); +void check_cycles(cpu_options * opts); + #endif //BACKEND_H_