mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue