Revision 0b0d3320 tcg/tcg.h
b/tcg/tcg.h | ||
---|---|---|
462 | 462 |
uint16_t gen_opc_icount[OPC_BUF_SIZE]; |
463 | 463 |
uint8_t gen_opc_instr_start[OPC_BUF_SIZE]; |
464 | 464 |
|
465 |
/* Code generation */ |
|
466 |
int code_gen_max_blocks; |
|
467 |
uint8_t *code_gen_prologue; |
|
468 |
uint8_t *code_gen_buffer; |
|
469 |
size_t code_gen_buffer_size; |
|
470 |
/* threshold to flush the translated code buffer */ |
|
471 |
size_t code_gen_buffer_max_size; |
|
472 |
uint8_t *code_gen_ptr; |
|
473 |
|
|
465 | 474 |
#if defined(CONFIG_QEMU_LDST_OPTIMIZATION) && defined(CONFIG_SOFTMMU) |
466 | 475 |
/* labels info for qemu_ld/st IRs |
467 | 476 |
The labels help to generate TLB miss case codes at the end of TB */ |
... | ... | |
658 | 667 |
TCGv_i32 tcg_const_local_i32(int32_t val); |
659 | 668 |
TCGv_i64 tcg_const_local_i64(int64_t val); |
660 | 669 |
|
661 |
extern uint8_t *code_gen_prologue; |
|
662 |
|
|
663 | 670 |
/* TCG targets may use a different definition of tcg_qemu_tb_exec. */ |
664 | 671 |
#if !defined(tcg_qemu_tb_exec) |
665 | 672 |
# define tcg_qemu_tb_exec(env, tb_ptr) \ |
666 |
((tcg_target_ulong (*)(void *, void *))code_gen_prologue)(env, tb_ptr) |
|
673 |
((tcg_target_ulong (*)(void *, void *))tcg_ctx.code_gen_prologue)(env, \ |
|
674 |
tb_ptr) |
|
667 | 675 |
#endif |
668 | 676 |
|
669 | 677 |
void tcg_register_jit(void *buf, size_t buf_size); |
Also available in: Unified diff