aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-02-04 13:28:01 +0000
committerPeter Maydell <peter.maydell@linaro.org>2013-02-04 13:28:01 +0000
commit3d07ee23c7746c6a4d3bdd8b4a736b9e906490e3 (patch)
tree7f93197f5cfbee49c696c3c602bedb8c276cbe91
parent6892f53daeac6be12ed702d75785afb0b578b5cd (diff)
downloadqemu-arm-3d07ee23c7746c6a4d3bdd8b4a736b9e906490e3.tar.gz
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c
index 960b664415..bb56238d55 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;
}