1. 23 9月, 2016 2 次提交
  2. 12 8月, 2016 1 次提交
  3. 12 7月, 2016 1 次提交
    • Y
      hw/mips: implement GIC Interval Timer · 40514051
      Yongbok Kim 提交于
      The interval timer is similar to the CP0 Count/Compare timer within
      each processor. The difference is the GIC_SH_COUNTER register is global
      to the system so that all processors have the same time reference.
      
      To ease implementation, all VPs are having its own QEMU timer but sharing
      global settings and registers such as GIC_SH_CONFIG.COUTNSTOP and
      GIC_SH_COUNTER.
      
      MIPS GIC Interval Timer does support upto 64 bits of Count register but
      in this implementation it is limited to 32 bits only.
      Signed-off-by: NYongbok Kim <yongbok.kim@imgtec.com>
      Signed-off-by: NLeon Alrae <leon.alrae@imgtec.com>
      40514051
  4. 07 7月, 2016 1 次提交
    • J
      i.MX: split the GPT timer implementation into per SOC definitions · 66542f63
      Jean-Christophe Dubois 提交于
      In various Freescale SOCs, the GPT timers can be configured to select
      its input clock.
      
      Depending on the SOC the set of available input clocks may vary.
      
      The actual single GPT definition was no good enough and because of it
      booting the sabrelite board with a i.MX6DL device tree would fail
      because of an incorrect input clock definition for the i.MX6DL SOC.
      
      This patch fixes the i.MX6DL boot failure by adding the ability to
      define a different set of input clocks depending on the considered SOC.
      
      A different class has been defined for i.MX25, i.MX31 and i.MX6 each with
      its specific set of input clocks.
      
      The patch has been tested by booting KZM, i.MX25 PDK, i.MX6Q sabrelite
      and i.MX6DL sabrelite.
      Signed-off-by: NJean-Christophe Dubois <jcd@tribudubois.net>
      Message-id: 1467325619-8374-1-git-send-email-jcd@tribudubois.net
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      [PMM: fixed spacing round '/' operator]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      66542f63
  5. 29 6月, 2016 1 次提交
  6. 21 6月, 2016 4 次提交
  7. 20 6月, 2016 1 次提交
    • E
      coccinelle: Remove unnecessary variables for function return value · 9be38598
      Eduardo Habkost 提交于
      Use Coccinelle script to replace 'ret = E; return ret' with
      'return E'. The script will do the substitution only when the
      function return type and variable type are the same.
      
      Manual fixups:
      
      * audio/audio.c: coding style of "read (...)" and "write (...)"
      * block/qcow2-cluster.c: wrap line to make it shorter
      * block/qcow2-refcount.c: change indentation of wrapped line
      * target-tricore/op_helper.c: fix coding style of
        "remainder|quotient"
      * target-mips/dsp_helper.c: reverted changes because I don't
        want to argue about checkpatch.pl
      * ui/qemu-pixman.c: fix line indentation
      * block/rbd.c: restore blank line between declarations and
        statements
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1465855078-19435-4-git-send-email-ehabkost@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      [Unused Coccinelle rule name dropped along with a redundant comment;
      whitespace touched up in block/qcow2-cluster.c; stale commit message
      paragraph deleted]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      9be38598
  8. 17 6月, 2016 1 次提交
  9. 07 6月, 2016 2 次提交
  10. 20 5月, 2016 1 次提交
  11. 19 5月, 2016 1 次提交
  12. 18 5月, 2016 1 次提交
  13. 08 4月, 2016 1 次提交
  14. 23 3月, 2016 4 次提交
    • V
      util: move declarations out of qemu-common.h · f348b6d1
      Veronia Bahaa 提交于
      Move declarations out of qemu-common.h for functions declared in
      utils/ files: e.g. include/qemu/path.h for utils/path.c.
      Move inline functions out of qemu-common.h and into new files (e.g.
      include/qemu/bcd.h)
      Signed-off-by: NVeronia Bahaa <veroniabahaa@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f348b6d1
    • R
      Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND · 73bcb24d
      Rutuja Shah 提交于
      This patch replaces get_ticks_per_sec() calls with the macro
      NANOSECONDS_PER_SECOND. Also, as there are no callers, get_ticks_per_sec()
      is then removed.  This replacement improves the readability and
      understandability of code.
      
      For example,
      
          timer_mod(fdctrl->result_timer,
      	      qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + (get_ticks_per_sec() / 50));
      
      NANOSECONDS_PER_SECOND makes it obvious that qemu_clock_get_ns
      matches the unit of the expression on the right side of the plus.
      Signed-off-by: NRutuja Shah <rutu.shah.26@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      73bcb24d
    • P
      hw: explicitly include qemu-common.h and cpu.h · 4771d756
      Paolo Bonzini 提交于
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      4771d756
    • M
      include/qemu/osdep.h: Don't include qapi/error.h · da34e65c
      Markus Armbruster 提交于
      Commit 57cb38b3 included qapi/error.h into qemu/osdep.h to get the
      Error typedef.  Since then, we've moved to include qemu/osdep.h
      everywhere.  Its file comment explains: "To avoid getting into
      possible circular include dependencies, this file should not include
      any other QEMU headers, with the exceptions of config-host.h,
      compiler.h, os-posix.h and os-win32.h, all of which are doing a
      similar job to this file and are under similar constraints."
      qapi/error.h doesn't do a similar job, and it doesn't adhere to
      similar constraints: it includes qapi-types.h.  That's in excess of
      100KiB of crap most .c files don't actually need.
      
      Add the typedef to qemu/typedefs.h, and include that instead of
      qapi/error.h.  Include qapi/error.h in .c files that need it and don't
      get it now.  Include qapi-types.h in qom/object.h for uint16List.
      
      Update scripts/clean-includes accordingly.  Update it further to match
      reality: replace config.h by config-target.h, add sysemu/os-posix.h,
      sysemu/os-win32.h.  Update the list of includes in the qemu/osdep.h
      comment quoted above similarly.
      
      This reduces the number of objects depending on qapi/error.h from "all
      of them" to less than a third.  Unfortunately, the number depending on
      qapi-types.h shrinks only a little.  More work is needed for that one.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      [Fix compilation without the spice devel packages. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      da34e65c
  15. 17 3月, 2016 4 次提交
  16. 23 2月, 2016 1 次提交
  17. 18 2月, 2016 7 次提交
  18. 03 2月, 2016 1 次提交
  19. 29 1月, 2016 5 次提交