Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
566:624dd5106060 | 567:8e395210f50f |
---|---|
41 | 41 |
42 typedef struct { | 42 typedef struct { |
43 uint32_t flags; | 43 uint32_t flags; |
44 native_map_slot *native_code_map; | 44 native_map_slot *native_code_map; |
45 deferred_addr *deferred; | 45 deferred_addr *deferred; |
46 code_ptr cur_code; | 46 code_info code; |
47 code_ptr code_end; | |
48 uint8_t **ram_inst_sizes; | 47 uint8_t **ram_inst_sizes; |
49 code_ptr save_context; | 48 code_ptr save_context; |
50 code_ptr load_context; | 49 code_ptr load_context; |
51 code_ptr handle_cycle_limit; | 50 code_ptr handle_cycle_limit; |
52 code_ptr handle_cycle_limit_int; | 51 code_ptr handle_cycle_limit_int; |
88 | 87 |
89 deferred_addr * defer_address(deferred_addr * old_head, uint32_t address, uint8_t *dest); | 88 deferred_addr * defer_address(deferred_addr * old_head, uint32_t address, uint8_t *dest); |
90 void remove_deferred_until(deferred_addr **head_ptr, deferred_addr * remove_to); | 89 void remove_deferred_until(deferred_addr **head_ptr, deferred_addr * remove_to); |
91 void process_deferred(deferred_addr ** head_ptr, void * context, native_addr_func get_native); | 90 void process_deferred(deferred_addr ** head_ptr, void * context, native_addr_func get_native); |
92 | 91 |
92 void cycles(cpu_options *opts, uint32_t num); | |
93 void check_cycles_int(cpu_options *opts, uint32_t address); | |
94 void check_cycles(cpu_options * opts); | |
95 | |
93 #endif //BACKEND_H_ | 96 #endif //BACKEND_H_ |
94 | 97 |