@@ -256,7 +256,7 @@ TCGv_env tcg_env;
256256const void * tcg_code_gen_epilogue ;
257257uintptr_t tcg_splitwx_diff ;
258258
259- #ifndef CONFIG_TCG_INTERPRETER
259+ #if !defined( CONFIG_TCG_INTERPRETER ) && !defined( EMSCRIPTEN )
260260tcg_prologue_fn * tcg_qemu_tb_exec ;
261261#endif
262262
@@ -1443,7 +1443,7 @@ static TCGHelperInfo info_helper_st128_mmu = {
14431443 | dh_typemask (ptr , 5 ) /* uintptr_t ra */
14441444};
14451445
1446- #ifdef CONFIG_TCG_INTERPRETER
1446+ #if defined( CONFIG_TCG_INTERPRETER ) || defined( EMSCRIPTEN )
14471447static ffi_type * typecode_to_ffi (int argmask )
14481448{
14491449 /*
@@ -1520,7 +1520,7 @@ static ffi_cif *init_ffi_layout(TCGHelperInfo *info)
15201520#else
15211521#define HELPER_INFO_INIT (I ) (&(I)->init)
15221522#define HELPER_INFO_INIT_VAL (I ) 1
1523- #endif /* CONFIG_TCG_INTERPRETER */
1523+ #endif /* CONFIG_TCG_INTERPRETER || EMSCRIPTEN */
15241524
15251525static inline bool arg_slot_reg_p (unsigned arg_slot )
15261526{
@@ -1897,7 +1897,7 @@ void tcg_prologue_init(void)
18971897 s -> code_buf = s -> code_gen_ptr ;
18981898 s -> data_gen_ptr = NULL ;
18991899
1900- #ifndef CONFIG_TCG_INTERPRETER
1900+ #if !defined( CONFIG_TCG_INTERPRETER ) && !defined( EMSCRIPTEN )
19011901 tcg_qemu_tb_exec = (tcg_prologue_fn * )tcg_splitwx_to_rx (s -> code_ptr );
19021902#endif
19031903
@@ -1916,7 +1916,7 @@ void tcg_prologue_init(void)
19161916 prologue_size = tcg_current_code_size (s );
19171917 perf_report_prologue (s -> code_gen_ptr , prologue_size );
19181918
1919- #ifndef CONFIG_TCG_INTERPRETER
1919+ #if !defined( CONFIG_TCG_INTERPRETER ) && !defined( EMSCRIPTEN )
19201920 flush_idcache_range ((uintptr_t )tcg_splitwx_to_rx (s -> code_buf ),
19211921 (uintptr_t )s -> code_buf , prologue_size );
19221922#endif
@@ -1953,7 +1953,7 @@ void tcg_prologue_init(void)
19531953 }
19541954 }
19551955
1956- #ifndef CONFIG_TCG_INTERPRETER
1956+ #if !defined( CONFIG_TCG_INTERPRETER ) && !defined( EMSCRIPTEN )
19571957 /*
19581958 * Assert that goto_ptr is implemented completely, setting an epilogue.
19591959 * For tci, we use NULL as the signal to return from the interpreter,
@@ -7055,7 +7055,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb, uint64_t pc_start)
70557055 return i ;
70567056 }
70577057
7058- #ifndef CONFIG_TCG_INTERPRETER
7058+ #if !defined( CONFIG_TCG_INTERPRETER ) && !defined( EMSCRIPTEN )
70597059 /* flush instruction cache */
70607060 flush_idcache_range ((uintptr_t )tcg_splitwx_to_rx (s -> code_buf ),
70617061 (uintptr_t )s -> code_buf ,
0 commit comments