c0a6385728
In the aspeed_rtc device we store a difference between two time_t values in an 'int'. This is not really correct when time_t could be 64 bits. Enlarge the field to 'int64_t'. This is a migration compatibility break for the aspeed boards. While we are changing the vmstate, remove the accidental duplicate of the offset field. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Cédric Le Goater <clg@kaod.org>
29 lines
518 B
C
29 lines
518 B
C
/*
|
|
* ASPEED Real Time Clock
|
|
* Joel Stanley <joel@jms.id.au>
|
|
*
|
|
* Copyright 2019 IBM Corp
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#ifndef HW_RTC_ASPEED_RTC_H
|
|
#define HW_RTC_ASPEED_RTC_H
|
|
|
|
#include "hw/sysbus.h"
|
|
#include "qom/object.h"
|
|
|
|
struct AspeedRtcState {
|
|
SysBusDevice parent_obj;
|
|
|
|
MemoryRegion iomem;
|
|
qemu_irq irq;
|
|
|
|
uint32_t reg[0x18];
|
|
int64_t offset;
|
|
|
|
};
|
|
|
|
#define TYPE_ASPEED_RTC "aspeed.rtc"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(AspeedRtcState, ASPEED_RTC)
|
|
|
|
#endif /* HW_RTC_ASPEED_RTC_H */
|