]> git.proxmox.com Git - qemu.git/commit - hw/ds1338.c
hw/ds1338.c: Fix handling of HOURS register.
authorAntoine Mathys <barsamin@gmail.com>
Thu, 13 Dec 2012 14:05:27 +0000 (14:05 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Dec 2012 14:05:27 +0000 (14:05 +0000)
commit59dda8e05b015471d456177141a7c2eeda3dab14
tree2f93ae5cc101a3fa596356abd9465a2754856423
parent95c9361598e66de42facdac64e614e3de85186f5
hw/ds1338.c: Fix handling of HOURS register.

Per the datasheet, the mapping between 12 and 24 hours modes is:
      0      <->  12   PM
      1-12   <->  1-12 AM
      13-23  <->  1-11 PM

Signed-off-by: Antoine Mathys <barsamin@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ds1338.c