]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/intc/mips_gic.c
accel/tcg: Replace CPUState.env_ptr with cpu_env()
[mirror_qemu.git] / hw / intc / mips_gic.c
index 4bdc3b1bd142bd4536062bbabde5099c800b4066..77ba7348a348e26bad4942220b47f9776105918f 100644 (file)
@@ -423,7 +423,7 @@ static void mips_gic_realize(DeviceState *dev, Error **errp)
     /* Register the env for all VPs with the GIC */
     for (i = 0; i < s->num_vps; i++) {
         if (cs != NULL) {
-            s->vps[i].env = cs->env_ptr;
+            s->vps[i].env = cpu_env(cs);
             cs = CPU_NEXT(cs);
         } else {
             error_setg(errp,