Revision 9669d3c5

b/hw/acpi.c
72 72
#define SMBHSTDAT1 0x06
73 73
#define SMBBLKDAT 0x07
74 74

  
75
PIIX4PMState *pm_state;
75
static PIIX4PMState *pm_state;
76 76

  
77 77
static uint32_t get_pmtmr(PIIX4PMState *s)
78 78
{
......
526 526
#if defined(TARGET_I386)
527 527
void qemu_system_powerdown(void)
528 528
{
529
    if(pm_state->pmen & PWRBTN_EN) {
529
    if (!pm_state) {
530
        qemu_system_shutdown_request();
531
    } else if (pm_state->pmen & PWRBTN_EN) {
530 532
        pm_state->pmsts |= PWRBTN_EN;
531 533
	pm_update_sci(pm_state);
532 534
    }

Also available in: Unified diff