aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-10-02 18:25:40 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-10-02 18:25:40 +0000
commit47d02f6d5c25a3858bc9d895d14ccfb5e8e6c1b8 (patch)
treee0fb26c2358a96accede99510cac566c163c63b9 /hw/acpi.c
parent93eac243d523b473dd33f6fc84ffa15ed2f018d9 (diff)
SMI enable bit support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2190 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/acpi.c')
-rw-r--r--hw/acpi.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index 76a9ce5878..ce16531fbf 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -19,7 +19,6 @@
#include "vl.h"
//#define DEBUG
-#define USE_SMM
/* i82731AB (PIIX4) compatible power management function */
#define PM_FREQ 3579545
@@ -200,19 +199,9 @@ static void pm_smi_writeb(void *opaque, uint32_t addr, uint32_t val)
#endif
if (addr == 0) {
s->apmc = val;
-#ifdef USE_SMM
- cpu_interrupt(first_cpu, CPU_INTERRUPT_SMI);
-#else
- /* emulation of what the SMM BIOS should do */
- switch(val) {
- case 0xf0: /* ACPI disable */
- s->pmcntrl &= ~SCI_EN;
- break;
- case 0xf1: /* ACPI enable */
- s->pmcntrl |= SCI_EN;
- break;
+ if (s->dev.config[0x5b] & (1 << 1)) {
+ cpu_interrupt(first_cpu, CPU_INTERRUPT_SMI);
}
-#endif
} else {
s->apms = val;
}