OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25d7169
)
hw/exynos4210_rtc.c: Fix calculating for value of year
author
Oleg Ogurtsov
<o.ogurtsov@samsung.com>
Wed, 11 Jul 2012 00:03:27 +0000
(
00:03
+0000)
committer
Peter Maydell
<peter.maydell@linaro.org>
Fri, 20 Jul 2012 13:16:14 +0000
(14:16 +0100)
Signed-off-by: Oleg Ogurtsov <o.ogurtsov@samsung.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/exynos4210_rtc.c
patch
|
blob
|
history
diff --git
a/hw/exynos4210_rtc.c
b/hw/exynos4210_rtc.c
index
f781020
..
b42586e
100644
(file)
--- 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)