aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2021-03-03 17:36:36 +0000
committerAlex Bennée <alex.bennee@linaro.org>2021-03-10 15:34:11 +0000
commita6487d37c2adff7572f9d3be8635c1fa96231b67 (patch)
tree53fc0858e49418f11a91e132f1e6fdf7e6405908 /include
parent2c9192c17778f0b59df6d8d3292b177436338ed0 (diff)
downloadqemu-a6487d37c2adff7572f9d3be8635c1fa96231b67.zip
qemu-a6487d37c2adff7572f9d3be8635c1fa96231b67.tar.gz
qemu-a6487d37c2adff7572f9d3be8635c1fa96231b67.tar.bz2
hw/board: promote fdt from ARM VirtMachineState to MachineState
The use of FDT's is quite common across our various platforms. To allow the guest loader to tweak it we need to make it available in the generic state. This creates the field and migrates the initial user to use the generic field. Other boards will be updated in later patches. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210303173642.3805-2-alex.bennee@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/arm/virt.h1
-rw-r--r--include/hw/boards.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index ee9a931..921416f 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -153,7 +153,6 @@ struct VirtMachineState {
MemMapEntry *memmap;
char *pciehb_nodename;
const int *irqmap;
- void *fdt;
int fdt_size;
uint32_t clock_phandle;
uint32_t gic_phandle;
diff --git a/include/hw/boards.h b/include/hw/boards.h
index a46dfe5..5fda5fd 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -258,6 +258,7 @@ struct MachineState {
/*< public >*/
+ void *fdt;
char *dtb;
char *dumpdtb;
int phandle_start;