summaryrefslogtreecommitdiff
path: root/hw/acpi.c
diff options
context:
space:
mode:
authorWen Congyang <wency@cn.fujitsu.com>2011-04-12 17:27:44 +0800
committerAurelien Jarno <aurelien@aurel32.net>2011-04-12 21:51:51 +0200
commit54f8e61d5bf8c80c407d8d6ea46ead816c029512 (patch)
tree9914ba27a27c08534ceb26f9de18366bbc43df52 /hw/acpi.c
parent54f7b4a396d00522d99c685562a54725a1b52e40 (diff)
downloadqemu-54f8e61d5bf8c80c407d8d6ea46ead816c029512.tar.gz
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>
Diffstat (limited to 'hw/acpi.c')
-rw-r--r--hw/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index e372474399..ad40fb4c3c 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -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();
}