Peter Maydell ba4906a9b6 hw/ds1338: Fix mishandling of register pointer
Correct several deficiencies in the handling of the register pointer:
 * it should wrap around after 0x3f, not 0xff
 * guard against the caller handing us an out of range pointer
   (on h/w this can never happen, because only a 7 bit value is
   transferred over the I2C bus)
 * there was confusion over whether nvram[] holds only the 56 bytes
   of guest-accessible NVRAM, or also the secondary registers
   which hold the value of the clock captured at the start of a
   multibyte read. Correct to consistently be the latter, by fixing
   the array size and the offset used for NVRAM writes.
 * ds1338_send was attempting to use 'data' as both the data and
   the register offset simultaneously, which meant that writes to
   any register were broken; fix to use the register pointer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2012-10-12 11:54:38 +01:00
2012-10-01 08:04:22 -05:00
2012-08-28 20:38:39 +02:00
2012-08-20 11:05:08 -03:00
2012-08-28 20:38:39 +02:00
2012-10-05 15:10:21 +02:00
2012-10-05 08:02:30 -05:00
2012-09-07 09:02:44 +03:00
2012-10-05 16:07:49 -05:00
2012-09-21 15:12:58 +02:00
2012-08-04 15:51:23 +00:00
2012-09-28 19:40:56 +02:00
2012-09-28 19:40:56 +02:00
2012-10-05 15:10:21 +02:00
2012-09-28 19:40:56 +02:00
2012-09-28 19:40:56 +02:00
2012-05-14 07:27:24 +02:00
2012-09-05 15:48:57 -03:00
2012-08-02 18:12:17 +02:00
2012-03-30 08:14:11 -05:00
2012-03-07 13:03:51 +00:00
2012-10-05 08:02:30 -05:00
2012-09-15 15:34:27 +00:00
2012-04-01 20:30:23 +02:00
2012-03-14 22:20:27 +01:00
2012-08-16 13:41:16 -05:00
2012-08-13 14:17:53 -03:00
2012-09-05 15:48:57 -03:00
2012-09-22 17:59:12 +00:00
2012-03-14 22:20:27 +01:00
2012-03-19 15:17:21 +02:00
2012-09-28 12:16:27 +02:00
2012-09-28 12:16:27 +02:00
2012-09-09 17:03:09 +03:00
2012-09-10 15:29:51 +03:00
2012-05-10 08:33:34 -05:00
2012-10-05 16:07:49 -05:00
2012-10-05 16:07:49 -05:00
2012-10-05 16:07:49 -05:00
2012-09-25 19:05:56 -05:00
2012-08-08 13:51:12 +02:00
2012-02-15 09:39:21 -06:00
2012-09-19 15:26:31 +02:00
2012-02-17 08:33:32 -06:00
2012-02-17 08:33:32 -06:00
2012-07-10 18:27:33 +02:00
2012-08-08 13:51:12 +02:00
2012-04-07 14:00:45 +00:00
2012-02-03 10:41:08 -06:00
2012-07-14 11:53:03 +00:00
2012-07-14 11:53:03 +00:00
2012-04-07 14:00:45 +00:00
2012-08-16 13:41:16 -05:00
2012-08-16 13:41:16 -05:00
2012-10-05 15:10:21 +02:00
2012-09-28 19:40:56 +02:00
2012-08-13 14:17:53 -03:00
2012-08-16 13:41:15 -05:00
2012-08-16 13:41:15 -05:00
2012-09-26 12:42:19 -03:00
2012-04-24 09:50:31 -05:00
2012-10-05 15:10:21 +02:00
2012-10-06 18:47:04 +02:00
2012-09-28 17:51:47 +02:00
2012-09-28 17:51:47 +02:00
2012-09-05 11:44:53 -05:00
2012-09-10 13:52:28 -05:00
2012-10-05 15:10:21 +02:00
2012-10-03 13:48:45 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 569 MiB
Languages
C 83%
C++ 6.3%
Python 3.2%
Dylan 2.9%
Shell 1.6%
Other 2.8%