hw/arm/virt: Merge VirtBoardInfo and VirtMachineState
commit9ac4ef77c1b43d1c105975a3d469551886e65c35
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Jan 2017 11:40:21 +0000 (9 11:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Jan 2017 11:40:21 +0000 (9 11:40 +0000)
treed85d0585195dcea61e967d6602577c6e9b9af830
parent5b982482c1c1f6170361b9c80dce60b5222242da
hw/arm/virt: Merge VirtBoardInfo and VirtMachineState

One of the purposes of VirtBoardInfo was to hold various
bits of state about the board. Now we have MachineState
and the subclass VirtMachineState to do this. Fold the
VirtBoardInfo into VirtMachineState rather than having
some flags in one struct and some in another with no
useful way to get between them.

In the process we drop the code for looking up the
memory map and irq map from the CPU model, because
in practice we always use the same maps in all cases.

For easier code review, this change removes the
VirtBoardInfo type but leaves all the variables which
used to be VirtBoardInfo* and are now VirtMachineState*
with their now-confusing 'vbi' names.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
hw/arm/virt.c