1. 13 12月, 2012 4 次提交
  2. 12 10月, 2012 4 次提交
    • P
      hw/ds1338: Implement state save/restore · f4741402
      Peter Maydell 提交于
      Implement state save/restore for the DS1338. This requires
      the usual minor adjustment of types in the state struct to
      get fixed-width ones with vmstate macros.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f4741402
    • P
      hw/ds1338: Remove 'now' field from state struct · 7f7fd0f2
      Peter Maydell 提交于
      The 'struct tm now' field in the state structure is in fact only
      ever used as a temporary (the actual RTC state is held in 'offset').
      Remove it from the state structure in favour of using local variables
      to avoid confusion about whether it needs to be saved on migration.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7f7fd0f2
    • P
      hw/ds1338: Recapture current time when register pointer wraps around · 35b87a86
      Peter Maydell 提交于
      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: NPeter Maydell <peter.maydell@linaro.org>
      35b87a86
    • P
      hw/ds1338: Fix mishandling of register pointer · ba4906a9
      Peter Maydell 提交于
      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: NPeter Maydell <peter.maydell@linaro.org>
      ba4906a9
  3. 19 3月, 2012 1 次提交
  4. 15 2月, 2012 1 次提交
  5. 04 2月, 2012 1 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  6. 28 1月, 2012 2 次提交
  7. 14 1月, 2012 1 次提交
  8. 24 7月, 2011 1 次提交
  9. 23 11月, 2009 1 次提交