summaryrefslogtreecommitdiff
path: root/hw/pci-host/pam.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-03-31 14:14:28 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-06-05 17:36:39 +0200
commit3de70c0899db2712a5ae321093aa6173d6f76706 (patch)
tree244b55f1c4eb255ac76a595ce43d5e111fc8855f /hw/pci-host/pam.c
parentf809c605122df291bbb9004dc487bde0969134b5 (diff)
downloadqemu-3de70c0899db2712a5ae321093aa6173d6f76706.tar.gz
qemu-3de70c0899db2712a5ae321093aa6173d6f76706.tar.bz2
qemu-3de70c0899db2712a5ae321093aa6173d6f76706.zip
hw/i386: remove smram_update
It's easier to inline it now that most of its work is done by the CPU (rather than the chipset) through /machine/smram and the memory API. Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci-host/pam.c')
-rw-r--r--hw/pci-host/pam.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/pci-host/pam.c b/hw/pci-host/pam.c
index 99d7af97e7..17d826cba5 100644
--- a/hw/pci-host/pam.c
+++ b/hw/pci-host/pam.c
@@ -31,12 +31,6 @@
#include "sysemu/sysemu.h"
#include "hw/pci-host/pam.h"
-void smram_update(MemoryRegion *smram_region, uint8_t smram)
-{
- bool smram_enabled = (smram & SMRAM_D_OPEN);
- memory_region_set_enabled(smram_region, !smram_enabled);
-}
-
void init_pam(DeviceState *dev, MemoryRegion *ram_memory,
MemoryRegion *system_memory, MemoryRegion *pci_address_space,
PAMMemoryRegion *mem, uint32_t start, uint32_t size)