diff options
author | Andreas Färber <afaerber@suse.de> | 2013-05-27 05:17:50 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-07-09 21:20:28 +0200 |
commit | 4917cf44326a1bda2fd7f27303aff7a25ad86518 (patch) | |
tree | d9c153504b0806990d0c5646c886e16150835d1a /hw/mips/mips_jazz.c | |
parent | 80b7cd735417b0883a026d79a513629a2817cdb4 (diff) | |
download | qemu-4917cf44326a1bda2fd7f27303aff7a25ad86518.zip qemu-4917cf44326a1bda2fd7f27303aff7a25ad86518.tar.gz qemu-4917cf44326a1bda2fd7f27303aff7a25ad86518.tar.bz2 |
cpu: Replace cpu_single_env with CPUState current_cpu
Move it to qom/cpu.h.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/mips/mips_jazz.c')
-rw-r--r-- | hw/mips/mips_jazz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index 3eac63b..31e138b 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); } } |