[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] hw/acpi/ich9: Use ICH9_PMIO_GPE0_STS just once
From: |
Bernhard Beschow |
Subject: |
[PATCH 4/7] hw/acpi/ich9: Use ICH9_PMIO_GPE0_STS just once |
Date: |
Sun, 22 Jan 2023 18:07:21 +0100 |
Cosmetic change emphasizing that always the actual address of the gpe0
block is returned.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/acpi/ich9.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c
index f8af238974..40a20e01ea 100644
--- a/hw/acpi/ich9.c
+++ b/hw/acpi/ich9.c
@@ -348,7 +348,9 @@ static void ich9_pm_get_gpe0_blk(Object *obj, Visitor *v,
const char *name,
void *opaque, Error **errp)
{
ICH9LPCPMRegs *pm = opaque;
- uint64_t value = pm->io.addr + ICH9_PMIO_GPE0_STS;
+ uint64_t value = pm->io.addr + pm->io_gpe.addr;
+
+ assert(&pm->io == pm->io_gpe.container);
visit_type_uint64(v, name, &value, errp);
}
--
2.39.1
- [PATCH 1/7] hw/acpi/{ich9, piix4}: Reuse existing attributes for QOM properties, (continued)
[PATCH 4/7] hw/acpi/ich9: Use ICH9_PMIO_GPE0_STS just once,
Bernhard Beschow <=
[PATCH 5/7] hw/acpi/piix4: Fix offset of GPE0 registers, Bernhard Beschow, 2023/01/22
[PATCH 6/7] hw/acpi: Trace GPE access in all device models, not just PIIX4, Bernhard Beschow, 2023/01/22
[PATCH 7/7] hw/acpi/core: Trace enable and status registers of GPE separately, Bernhard Beschow, 2023/01/22
Re: [PATCH 0/7] ACPI controller cleanup, Igor Mammedov, 2023/01/25