Mercurial > repos > blastem
diff z80_to_x86.h @ 252:63b9a500a00b
Implement retranslating code when written to. Possibly broken, need to fix some other bugs before a proper test.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 29 Apr 2013 21:46:48 -0700 |
parents | df8a36bf5e1d |
children | 2989ed7b8608 |
line wrap: on
line diff
--- a/z80_to_x86.h Mon Apr 29 01:14:24 2013 -0700 +++ b/z80_to_x86.h Mon Apr 29 21:46:48 2013 -0700 @@ -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 @@ 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 @@ 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);