From 16e7b59467ba17034f63834962e5d326a8facce4 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 2 Mar 2014 14:45:36 -0800 Subject: 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 --- backend.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'backend.h') diff --git a/backend.h b/backend.h index 697ea7a..b98dc2f 100644 --- a/backend.h +++ b/backend.h @@ -43,8 +43,7 @@ typedef struct { 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 @@ deferred_addr * defer_address(deferred_addr * old_head, uint32_t address, uint8_ 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_ -- cgit v1.2.3