1. 03 4月, 2010 1 次提交
    • A
      Make cpu_get_real_ticks use mfspr · 4a9590f3
      Alexander Graf 提交于
      PowerPC CPUs have had two ways to read the time base for quite some time now.
      They provide it using the mfspr instruction or - if a special bit is set in
      that opcode - using mftb. For timekeeping we're currently using mftb.
      
      While trying to get Qemu up and running on an e500v2 system, I stumbled over
      the CPU not supporting mftbu. It just throws an illegal instruction trap.
      
      So let's read the SPR values instead. All PPC CPUs should support them anyways.
      
      I tested this patch on an e500v2 system where it makes qemu work and on my 970MP
      system with 32-bit user space where everything still works with this patch
      applied.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      4a9590f3
  2. 30 3月, 2010 1 次提交
  3. 18 3月, 2010 1 次提交
  4. 10 2月, 2010 1 次提交
  5. 05 10月, 2009 1 次提交
    • J
      Introduce QEMU_CLOCK_HOST · 21d5d12b
      Jan Kiszka 提交于
      Despite its name QEMU_CLOCK_REALTIME is (normally) not using
      CLOCK_REALTIME / the host system time as base. In order to allow also
      non-trivial RTC emulations (MC146818) to follow the host time instead of
      the virtual guest time, introduce the new clock type QEMU_CLOCK_HOST. It
      is unconditionally based on CLOCK_REALTIME, thus will follow system time
      changes of the host.
      
      The only limitation of its current implementation is that pending
      host_clock timers may not fire early if the host time is pushed forward
      beyond their expiry. So far no urgent need to overcome this limitation
      was identified, so it's left as simple as it is (expiry on next alarm
      timer tick).
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      21d5d12b
  6. 12 9月, 2009 1 次提交
    • A
      Make get_ticks_per_sec() a static inline · 274dfed8
      Anthony Liguori 提交于
      ticks_per_sec is a constant.  There's no need to store it as a variable as it
      never changes since our time is based on units.
      
      Convert get_ticks_per_sec() to a static inline and move the constant into
      qemu-timer.h.  Remove all references to QEMU_TIMER_BASE so that we consistently
      use this interface.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      274dfed8
  7. 11 9月, 2009 1 次提交
  8. 11 8月, 2009 1 次提交
  9. 18 11月, 2007 1 次提交