Skip to content
  • Peter Maydell's avatar
    9ac4ef77
    hw/arm/virt: Merge VirtBoardInfo and VirtMachineState · 9ac4ef77
    Peter Maydell authored
    
    
    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: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarAndrew Jones <drjones@redhat.com>
    9ac4ef77
    hw/arm/virt: Merge VirtBoardInfo and VirtMachineState
    Peter Maydell authored
    
    
    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: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarAndrew Jones <drjones@redhat.com>
Loading