]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/sparc/translate.c
tcg: define tcg_init_ctx and make tcg_ctx a pointer
[mirror_qemu.git] / target / sparc / translate.c
index 9dc41869a41269a231f02537122374bfb9ebdbf6..afef77976b1bb5454e7387e2029bfad717164a10 100644 (file)
@@ -5912,7 +5912,7 @@ void sparc_tcg_init(void)
     unsigned int i;
 
     cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
-    tcg_ctx.tcg_env = cpu_env;
+    tcg_ctx->tcg_env = cpu_env;
 
     cpu_regwptr = tcg_global_mem_new_ptr(cpu_env,
                                          offsetof(CPUSPARCState, regwptr),