]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bsd-user/main.c
accel/tcg: Replace CPUState.env_ptr with cpu_env()
[mirror_qemu.git] / bsd-user / main.c
index f913cb55a72992648f394bbcdface9f7096a8c0f..6c9addb75aee0a1dcc889401296ac515f712f8f6 100644 (file)
@@ -462,7 +462,7 @@ int main(int argc, char **argv)
         ac->init_machine(NULL);
     }
     cpu = cpu_create(cpu_type);
-    env = cpu->env_ptr;
+    env = cpu_env(cpu);
     cpu_reset(cpu);
     thread_cpu = cpu;