X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=hw%2Fmips%2Fmips_jazz.c;h=31e138b056197b8067f3f150ca0ef5aad7f09714;hb=4917cf44326a1bda2fd7f27303aff7a25ad86518;hp=3eac63b2fcceaa325a86bf577ae10d1f62de318b;hpb=80b7cd735417b0883a026d79a513629a2817cdb4;p=mirror_qemu.git diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index 3eac63b2fc..31e138b056 100644 --- a/hw/mips/mips_jazz.c +++ b/hw/mips/mips_jazz.c @@ -99,10 +99,10 @@ static const MemoryRegionOps dma_dummy_ops = { static void cpu_request_exit(void *opaque, int irq, int level) { - CPUMIPSState *env = cpu_single_env; + CPUState *cpu = current_cpu; - if (env && level) { - cpu_exit(CPU(mips_env_get_cpu(env))); + if (cpu && level) { + cpu_exit(cpu); } }