diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-04-29 21:46:48 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-04-29 21:46:48 -0700 |
commit | b4d93c2e5ed601430c9680b8f06996ea834f80b7 (patch) | |
tree | 2c3d635e7313b25e7279906fa5fbb94bc8609659 /z80_to_x86.h | |
parent | e43d9cd9eb59197c72eb08189cfcbb37cd630898 (diff) |
Implement retranslating code when written to. Possibly broken, need to fix some other bugs before a proper test.
Diffstat (limited to 'z80_to_x86.h')
-rw-r--r-- | z80_to_x86.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/z80_to_x86.h b/z80_to_x86.h index 7b155a1..a00dbe9 100644 --- a/z80_to_x86.h +++ b/z80_to_x86.h @@ -4,6 +4,7 @@ #include "x86_backend.h" #define ZNUM_MEM_AREAS 4 +#define ZMAX_NATIVE_SIZE 128 enum { ZF_C = 0, @@ -18,6 +19,7 @@ enum { typedef struct { uint8_t * cur_code; uint8_t * code_end; + uint8_t *ram_inst_sizes; deferred_addr * deferred; uint32_t flags; int8_t regs[Z80_UNUSED]; @@ -46,6 +48,7 @@ typedef struct { native_map_slot * banked_code_map; void * options; void * next_context; + uint8_t ram_code_flags[(8 * 1024)/128/8]; } z80_context; void translate_z80_stream(z80_context * context, uint32_t address); |