summaryrefslogtreecommitdiff
path: root/backend.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-03-02 14:45:36 -0800
committerMichael Pavone <pavone@retrodev.com>2014-03-02 14:45:36 -0800
commit16e7b59467ba17034f63834962e5d326a8facce4 (patch)
tree34c188d6f088c7985905fc69a29b4cddff88f332 /backend.h
parent21c7f3bc1537b360433c3149488c3077c7639b9b (diff)
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
Diffstat (limited to 'backend.h')
-rw-r--r--backend.h7
1 files changed, 5 insertions, 2 deletions
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_