comparison m68k_to_x86.h @ 197:7c227a8ec53d

Add instruction address logging to translator and support for reading an address log to the disassembler
author Mike Pavone <pavone@retrodev.com>
date Thu, 17 Jan 2013 20:00:07 -0800
parents c66e4636f991
children 209a37eed3e7
comparison
equal deleted inserted replaced
196:f8955d33486d 197:7c227a8ec53d
1 #include <stdint.h> 1 #include <stdint.h>
2 #include <stdio.h>
2 #include "68kinst.h" 3 #include "68kinst.h"
3 4
4 #define NUM_MEM_AREAS 4 5 #define NUM_MEM_AREAS 4
5 #define NATIVE_MAP_CHUNKS (64*1024) 6 #define NATIVE_MAP_CHUNKS (64*1024)
6 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)/2) 7 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)/2)
28 native_map_slot *native_code_map; 29 native_map_slot *native_code_map;
29 deferred_addr *deferred; 30 deferred_addr *deferred;
30 uint8_t *cur_code; 31 uint8_t *cur_code;
31 uint8_t *code_end; 32 uint8_t *code_end;
32 uint8_t **ram_inst_sizes; 33 uint8_t **ram_inst_sizes;
34 FILE *address_log;
33 } x86_68k_options; 35 } x86_68k_options;
34 36
35 typedef struct { 37 typedef struct {
36 uint8_t flags[5]; 38 uint8_t flags[5];
37 uint8_t status; 39 uint8_t status;