From 3654fa95bc29e72c2eef22f26eb621af1f86feec Mon Sep 17 00:00:00 2001 From: Cédric Le Goater Date: Tue, 2 Aug 2016 19:38:01 +0200 Subject: hw/ppc: add a ppc_create_page_sizes_prop() helper routine The exact same routine will be used in PowerNV. Signed-off-by: Cédric Le Goater Signed-off-by: David Gibson --- include/hw/ppc/fdt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/hw/ppc/fdt.h b/include/hw/ppc/fdt.h index 2e5c61af14..2c68d1616f 100644 --- a/include/hw/ppc/fdt.h +++ b/include/hw/ppc/fdt.h @@ -12,6 +12,8 @@ #include "qemu/error-report.h" +typedef struct CPUPPCState CPUPPCState; + #define _FDT(exp) \ do { \ int ret = (exp); \ @@ -22,4 +24,7 @@ } \ } while (0) +size_t ppc_create_page_sizes_prop(CPUPPCState *env, uint32_t *prop, + size_t maxsize); + #endif /* PPC_FDT_H */ -- cgit v1.2.3-55-g7522