Add missing tcg_prologue_init() for --disable-cpu-emulation build
PATCH 1/1 Add missing tcg_prologue_init() for --disable-cpu-emulation build
Add missing tcg_prologue_init() and tcg_ctx, remove code_gen_max_block_size.
Fixes ./configure --disable-cpu-emulation.
Signed-off-by Avi Kivity <[email protected]>
--- target-i386/fake-exec.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-)
target-i386/fake-exec.c +7 -5
@@ -12,22 +12,20 @@*/ #include "exec.h" #include "cpu.h" +#include "tcg.h" int code_copy_enabled =0 ;CCTable cc_table[CC_OP_NB ]; +TCGContext tcg_ctx; +void cpu_dump_statistics (CPUState *env,FILE *f,int (*cpu_fprintf)(FILE *f,const char *fmt, ...),int flags) { } -unsigned long code_gen_max_block_size (void ) -{ -return 32 ; -} -void cpu_gen_init (void ) { }
@@ -48,3 +46,7 @@ int cpu_x86_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptrvoid optimize_flags_init (void ) { } + +void tcg_prologue_init (TCGContext *ctx) +{ +}
Signature · 1 line
1.7.1