mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-08 21:28:13 +00:00
hw/exynos4210_rtc.c: Fix calculating for value of year
Signed-off-by: Oleg Ogurtsov <o.ogurtsov@samsung.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
25d7169982
commit
64de1ecfe7
@ -142,7 +142,7 @@ static const VMStateDescription vmstate_exynos4210_rtc_state = {
|
||||
};
|
||||
|
||||
#define BCD3DIGITS(x) \
|
||||
((uint32_t)to_bcd((uint8_t)x) + \
|
||||
((uint32_t)to_bcd((uint8_t)(x % 100)) + \
|
||||
((uint32_t)to_bcd((uint8_t)((x % 1000) / 100)) << 8))
|
||||
|
||||
static void check_alarm_raise(Exynos4210RTCState *s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user