diff options
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r-- | target-i386/translate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index 731b10de06..bf33e6b353 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -8144,6 +8144,12 @@ void tcg_x86_init(void) "bnd0_ub", "bnd1_ub", "bnd2_ub", "bnd3_ub" }; int i; + static bool initialized; + + if (initialized) { + return; + } + initialized = true; cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); cpu_cc_op = tcg_global_mem_new_i32(cpu_env, |