mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-28 20:00:38 -07:00
fix acpi regression
This bug is introduced by commit 23910d3f.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
54f7b4a396
commit
54f8e61d5b
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ static uint8_t *acpi_gpe_ioport_get_ptr(ACPIGPE *gpe, uint32_t addr)
|
|||
if (addr < gpe->len / 2) {
|
||||
cur = gpe->sts + addr;
|
||||
} else if (addr < gpe->len) {
|
||||
cur = gpe->en + addr;
|
||||
cur = gpe->en + addr - gpe->len / 2;
|
||||
} else {
|
||||
abort();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue