summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Gibson2018-03-22 06:18:40 +0100
committerDavid Gibson2018-04-27 10:05:22 +0200
commit644a2c99a90b95957fd56fc3b9f8908ac9e90702 (patch)
tree3015a23d49e59b3a724a7986fd903b0169722e5b /include
parenttarget/ppc: Simplify cpu valid check in ppc_cpu_realize (diff)
downloadqemu-644a2c99a90b95957fd56fc3b9f8908ac9e90702.tar.gz
qemu-644a2c99a90b95957fd56fc3b9f8908ac9e90702.tar.xz
qemu-644a2c99a90b95957fd56fc3b9f8908ac9e90702.zip
target/ppc: Pass cpu instead of env to ppc_create_page_sizes_prop()
As a rule we prefer to pass PowerPCCPU instead of CPUPPCState, and this change will make some things simpler later on. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/fdt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/fdt.h b/include/hw/ppc/fdt.h
index bd5b0a8c3d..a8cd85069f 100644
--- a/include/hw/ppc/fdt.h
+++ b/include/hw/ppc/fdt.h
@@ -23,7 +23,7 @@
} \
} while (0)
-size_t ppc_create_page_sizes_prop(CPUPPCState *env, uint32_t *prop,
+size_t ppc_create_page_sizes_prop(PowerPCCPU *cpu, uint32_t *prop,
size_t maxsize);
#endif /* PPC_FDT_H */