]> git.proxmox.com Git - qemu.git/commit
e500: Replace open-coded loop with qemu_get_cpu()
authorAndreas Färber <afaerber@suse.de>
Fri, 15 Feb 2013 14:21:13 +0000 (15:21 +0100)
committerAndreas Färber <afaerber@suse.de>
Sat, 16 Feb 2013 13:51:00 +0000 (14:51 +0100)
commit440c8152bd410b0f928d4de6f187f1e2280e1324
treeb63117d56ce35dd3aab06dca3e4873c43c21e067
parentc05efcb18ee30cdf2b00b3512aa0f5233b52911f
e500: Replace open-coded loop with qemu_get_cpu()

Since we still need env for ppc-specific fields, obtain it via the new
env_ptr fields to avoid "cpu" name conflicts between CPUState and
PowerPCCPU for now.

This fixes a potential issue with env being NULL at the end of the loop
but cpu still being a valid pointer corresponding to a previous env.

Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/ppc/e500.c