MemoryRegion::addr is private data of MemoryRegion, use memory_region_get_address() to access it.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- hw/timer/hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index c1b96d0a89f..e2cd0c9cccb 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -677,7 +677,7 @@ static void hpet_reset(DeviceState *d) s->hpet_offset = 0ULL; s->config = 0ULL; hpet_fw_cfg.hpet[s->hpet_id].event_timer_block_id = (uint32_t)s->capability; - hpet_fw_cfg.hpet[s->hpet_id].address = mr->addr; + hpet_fw_cfg.hpet[s->hpet_id].address = memory_region_get_address(mr); /* to document that the RTC lowers its output on reset as well */ s->rtc_irq_level = 0; -- 2.51.0
