diff options
author | Oleg Ogurtsov | 2012-07-11 02:03:27 +0200 |
---|---|---|
committer | Peter Maydell | 2012-07-20 15:16:14 +0200 |
commit | 64de1ecfe7b3e88cb9f04c993e14ab85c2b5c532 (patch) | |
tree | 71eaa0a3e53862aa5d6ba39d3077947e38010be0 | |
parent | hw/vexpress.c: Allow >4GB of RAM for Cortex-A15 daughterboard (diff) | |
download | qemu-64de1ecfe7b3e88cb9f04c993e14ab85c2b5c532.tar.gz qemu-64de1ecfe7b3e88cb9f04c993e14ab85c2b5c532.tar.xz qemu-64de1ecfe7b3e88cb9f04c993e14ab85c2b5c532.zip |
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>
-rw-r--r-- | hw/exynos4210_rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/exynos4210_rtc.c b/hw/exynos4210_rtc.c index f78102049b..b42586eb21 100644 --- a/hw/exynos4210_rtc.c +++ b/hw/exynos4210_rtc.c @@ -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) |