]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-openrisc/translate.c
exec: [tcg] Track which vCPU is performing translation and execution
[mirror_qemu.git] / target-openrisc / translate.c
index c08876b14aeaec0a700c093d2c6c4c2eb896f196..28c944657c99b1bee44d2b6d99aee1276949bede 100644 (file)
@@ -78,6 +78,7 @@ void openrisc_translate_init(void)
     int i;
 
     cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
+    tcg_ctx.tcg_env = cpu_env;
     cpu_sr = tcg_global_mem_new(cpu_env,
                                 offsetof(CPUOpenRISCState, sr), "sr");
     env_flags = tcg_global_mem_new_i32(cpu_env,