]> git.proxmox.com Git - mirror_qemu.git/commit
hw/misc/bcm2835_property: Track fb settings using BCM2835FBConfig
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:48 +0000 (13:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:48 +0000 (13:17 +0100)
commit193100b571755023690787bcb1ebc91fcc03ed50
tree475f8418482a816f2c6f06f352d26e991501d958
parenta02755ece0c0652480ed9d9f2f0355fdc3632fdb
hw/misc/bcm2835_property: Track fb settings using BCM2835FBConfig

Refactor the fb property setting code so that rather than
using a set of pointers to local variables to track
whether a config value has been updated in the current
mbox and if so what its new value is, we just copy
all the current settings of the fb at the start, and
then update that copy as we go along, before asking
the fb to switch to it at the end.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180814144436.679-3-peter.maydell@linaro.org
hw/display/bcm2835_fb.c
hw/misc/bcm2835_property.c
include/hw/display/bcm2835_fb.h