提交 64de1ecf 编写于 作者: O Oleg Ogurtsov 提交者: Peter Maydell

hw/exynos4210_rtc.c: Fix calculating for value of year

Signed-off-by: NOleg Ogurtsov <o.ogurtsov@samsung.com>
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
上级 25d71699
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册