hw/ds1338: Recapture current time when register pointer wraps around
commit35b87a861394ed088c4db3b7ba9a67d8bb2b289e
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Oct 2012 10:54:38 +0000 (12 11:54 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Oct 2012 10:54:38 +0000 (12 11:54 +0100)
tree67386b7048735e29b794996bb2d76f86c7610423
parentba4906a9b64e165a958e12f6208ca834dc7a36dc
hw/ds1338: Recapture current time when register pointer wraps around

The DS1338 datasheet documents that the current time is captured into
the secondary registers when the register pointer wraps round to zero
as well as at a START condition. Implement this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ds1338.c