[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 19/24] hw/rtc/twl92230: Use int64_t for sec_offset and alm_sec
From: |
Peter Maydell |
Subject: |
[PULL 19/24] hw/rtc/twl92230: Use int64_t for sec_offset and alm_sec |
Date: |
Thu, 31 Aug 2023 11:45:14 +0100 |
In the twl92230 device, use int64_t for the two state fields
sec_offset and alm_sec, because we set these to values that
are either time_t or differences between two time_t values.
These fields aren't saved in vmstate anywhere, so we can
safely widen them.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/rtc/twl92230.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/rtc/twl92230.c b/hw/rtc/twl92230.c
index d8534dad949..64c61c3daeb 100644
--- a/hw/rtc/twl92230.c
+++ b/hw/rtc/twl92230.c
@@ -65,8 +65,8 @@ struct MenelausState {
struct tm tm;
struct tm new;
struct tm alm;
- int sec_offset;
- int alm_sec;
+ int64_t sec_offset;
+ int64_t alm_sec;
int next_comp;
} rtc;
uint16_t rtc_next_vmstate;
--
2.34.1
- [PULL 12/24] Refactor i.MX6UL processor code, (continued)
- [PULL 12/24] Refactor i.MX6UL processor code, Peter Maydell, 2023/08/31
- [PULL 21/24] rtc: Use time_t for passing and returning time offsets, Peter Maydell, 2023/08/31
- [PULL 15/24] Add i.MX7 missing TZ devices and memory regions, Peter Maydell, 2023/08/31
- [PULL 16/24] Add i.MX7 SRC device implementation, Peter Maydell, 2023/08/31
- [PULL 24/24] hw/arm: Set number of MPU regions correctly for an505, an521, an524, Peter Maydell, 2023/08/31
- [PULL 23/24] hw/arm/armv7m: Add mpu-ns-regions and mpu-s-regions properties, Peter Maydell, 2023/08/31
- [PULL 17/24] target/arm: Catch illegal-exception-return from EL3 with bad NSE/NS, Peter Maydell, 2023/08/31
- [PULL 18/24] hw/rtc/m48t59: Use 64-bit arithmetic in set_alarm(), Peter Maydell, 2023/08/31
- [PULL 20/24] hw/rtc/aspeed_rtc: Use 64-bit offset for holding time_t difference, Peter Maydell, 2023/08/31
- [PULL 22/24] target/arm: Do all "ARM_FEATURE_X implies Y" checks in post_init, Peter Maydell, 2023/08/31
- [PULL 19/24] hw/rtc/twl92230: Use int64_t for sec_offset and alm_sec,
Peter Maydell <=
- [PULL 05/24] target/arm: Introduce make_ccsidr64, Peter Maydell, 2023/08/31
- [PULL 11/24] Remove i.MX7 IOMUX GPR device from i.MX6UL, Peter Maydell, 2023/08/31
- Re: [PULL 00/24] target-arm queue, Stefan Hajnoczi, 2023/08/31