mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
acpi: add acpi_pm1_evt_write_en
Do APCIREGS->pm1.evt.en updates using the new acpi_pm1_evt_write_en function, so the acpi code will see those updates. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
2886be1b01
commit
8283c4f565
4 changed files with 8 additions and 2 deletions
|
@ -117,7 +117,7 @@ static void pm_ioport_write(IORange *ioport, uint64_t addr, unsigned width,
|
|||
pm_update_sci(s);
|
||||
break;
|
||||
case 0x02:
|
||||
s->ar.pm1.evt.en = val;
|
||||
acpi_pm1_evt_write_en(&s->ar, val);
|
||||
pm_update_sci(s);
|
||||
break;
|
||||
case 0x04:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue