qemu-config: add error propagation to qemu_config_parse
[qemu/ar7.git] / include / hw / ppc / fdt.h
bloba8cd85069fe04f70bb244326f1bb02ec636fdcae
1 /*
2 * QEMU PowerPC helper routines for the device tree.
4 * Copyright (C) 2016 IBM Corp.
6 * This code is licensed under the GPL version 2 or later. See the
7 * COPYING file in the top-level directory.
8 */
10 #ifndef PPC_FDT_H
11 #define PPC_FDT_H
13 #include "qemu/error-report.h"
14 #include "target/ppc/cpu-qom.h"
16 #define _FDT(exp) \
17 do { \
18 int ret = (exp); \
19 if (ret < 0) { \
20 error_report("error creating device tree: %s: %s", \
21 #exp, fdt_strerror(ret)); \
22 exit(1); \
23 } \
24 } while (0)
26 size_t ppc_create_page_sizes_prop(PowerPCCPU *cpu, uint32_t *prop,
27 size_t maxsize);
29 #endif /* PPC_FDT_H */