diff --git a/src/cpu/core_dynrec.cpp b/src/cpu/core_dynrec.cpp index 55a631ea..fc7b1a81 100644 --- a/src/cpu/core_dynrec.cpp +++ b/src/cpu/core_dynrec.cpp @@ -48,6 +48,7 @@ #include "debug.h" #include "paging.h" #include "inout.h" +#include "lazyflags.h" #define CACHE_MAXSIZE (4096) #define CACHE_TOTAL (1024*1024*8) diff --git a/src/cpu/core_dynrec/decoder_basic.h b/src/cpu/core_dynrec/decoder_basic.h index 2ec74b85..b8f515bb 100644 --- a/src/cpu/core_dynrec/decoder_basic.h +++ b/src/cpu/core_dynrec/decoder_basic.h @@ -1029,16 +1029,15 @@ static void gen_restore_reg(HostReg reg,HostReg dest_reg) { -#include "lazyflags.h" - // flags optimization functions // they try to find out if a function can be replaced by another // one that does not generate any flags at all static Bitu mf_functions_num=0; static struct { - DRC_PTR_SIZE_IM pos; - Bit32u fct_ptr; + Bit8u* pos; + void* fct_ptr; + Bitu ftype; } mf_functions[64]; static void InitFlagsOptimization(void) { @@ -1051,7 +1050,7 @@ static void InitFlagsOptimization(void) { static void InvalidateFlags(void) { #ifdef DRC_FLAGS_INVALIDATION for (Bitu ct=0; ct