]> Git Repo - qemu.git/commit
rtc: map CMOS index 0x37 to 0x32 on read and writes
authorPaolo Bonzini <[email protected]>
Mon, 1 Oct 2012 12:22:07 +0000 (14:22 +0200)
committerAnthony Liguori <[email protected]>
Fri, 5 Oct 2012 13:02:30 +0000 (08:02 -0500)
commite67edb943f0c812530aaae2491da56f9542f928b
tree882a919b6e3490b4050d6c914d2a4c22bf0ea1e8
parentb6db4aca20e9af4f62c9c9e08b9b9672a6ed3390
rtc: map CMOS index 0x37 to 0x32 on read and writes

QEMU's attempt to implement the century byte cover two possible places
for the byte.  A common one on modern chipsets is 0x32, but QEMU also
stores the value in 0x37 (apparently for IBM PS/2 compatibility---it's
only been 25 years).  To simplify the implementation of the century
byte, store it only at 0x32 but remap transparently 0x37 to 0x32 when
reading and writing from CMOS.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/mc146818rtc.c
hw/mc146818rtc_regs.h
This page took 0.035702 seconds and 4 git commands to generate.