diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-03-15 16:41:56 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-03-15 16:41:56 +0000 |
commit | 291155cbc54212a451d0b899a01b6e3e14ed9135 (patch) | |
tree | e6b53a20b67c973acfd0e9027054d5e13d9c6959 | |
parent | 8ff05c9842e28888b936dbd960f6416cee5addb6 (diff) | |
download | qemu-291155cbc54212a451d0b899a01b6e3e14ed9135.zip qemu-291155cbc54212a451d0b899a01b6e3e14ed9135.tar.gz qemu-291155cbc54212a451d0b899a01b6e3e14ed9135.tar.bz2 |
hw/arm_sysctl: Implement SYS_CFG_DVIMODE as a no-op
SYS_CFG_DVIMODE allows the guest to select whether the
output DVI signal is VGA, SVGA, XGA, SGA or UXGA. Since
this makes no difference to QEMU, implement writes as a
no-op so Linux doesn't complain.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/arm_sysctl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index a6e5ed4..840bfad 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -295,6 +295,14 @@ static bool vexpress_cfgctrl_write(arm_sysctl_state *s, unsigned int dcc, return true; } break; + case SYS_CFG_DVIMODE: + if (site == SYS_CFG_SITE_MB && device == 0) { + /* Selecting DVI mode is meaningless for QEMU: we will + * always display the output correctly according to the + * pixel height/width programmed into the CLCD controller. + */ + return true; + } default: break; } |