Re: [Qemu-devel] [PATCH 4/4] hw/ds1338.c: Handle stuck bits and preserve CH

2012-12-04 Thread Peter Maydell
On 2 December 2012 17:22, Antoine Mathys wrote: > Preserve the CH bit when updating the time. > > Per the datasheet, some bits in the first eight registers must always read > back as zero. These registers can be written in two ways: > 1. By ourselves when we update the registers with the current t

[Qemu-devel] [PATCH 4/4] hw/ds1338.c: Handle stuck bits and preserve CH

2012-12-02 Thread Antoine Mathys
Preserve the CH bit when updating the time. Per the datasheet, some bits in the first eight registers must always read back as zero. These registers can be written in two ways: 1. By ourselves when we update the registers with the current time. 2. By user request Even though (1) is not supposed