summaryrefslogtreecommitdiffstats
path: root/hw/pci-host
diff options
context:
space:
mode:
authorGerd Hoffmann2015-04-15 16:48:12 +0200
committerPaolo Bonzini2015-06-05 17:36:39 +0200
commitb66a67d7519cb7f980885af5391b1103c42e9b6d (patch)
treeafc152ffe33cdd79c4a16b9d7e41e1c07a988c47 /hw/pci-host
parentq35: fix ESMRAMC default (diff)
downloadqemu-b66a67d7519cb7f980885af5391b1103c42e9b6d.tar.gz
qemu-b66a67d7519cb7f980885af5391b1103c42e9b6d.tar.xz
qemu-b66a67d7519cb7f980885af5391b1103c42e9b6d.zip
q35: add config space wmask for SMRAM and ESMRAMC
Not all bits in SMRAM and ESMRAMC can be changed by the guest. Add wmask defines accordingly and set them in mch_reset(). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci-host')
-rw-r--r--hw/pci-host/q35.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
index 4e65bdc559..14e5aebee6 100644
--- a/hw/pci-host/q35.c
+++ b/hw/pci-host/q35.c
@@ -355,6 +355,8 @@ static void mch_reset(DeviceState *qdev)
d->config[MCH_HOST_BRIDGE_SMRAM] = MCH_HOST_BRIDGE_SMRAM_DEFAULT;
d->config[MCH_HOST_BRIDGE_ESMRAMC] = MCH_HOST_BRIDGE_ESMRAMC_DEFAULT;
+ d->wmask[MCH_HOST_BRIDGE_SMRAM] = MCH_HOST_BRIDGE_SMRAM_WMASK;
+ d->wmask[MCH_HOST_BRIDGE_ESMRAMC] = MCH_HOST_BRIDGE_ESMRAMC_WMASK;
mch_update(mch);
}