1. 30 4月, 2019 5 次提交
  2. 19 4月, 2019 2 次提交
    • M
      qom/cpu: Simplify how CPUClass:cpu_dump_state() prints · 90c84c56
      Markus Armbruster 提交于
      CPUClass method dump_statistics() takes an fprintf()-like callback and
      a FILE * to pass to it.  Most callers pass fprintf() and stderr.
      log_cpu_state() passes fprintf() and qemu_log_file.
      hmp_info_registers() passes monitor_fprintf() and the current monitor
      cast to FILE *.  monitor_fprintf() casts it right back, and is
      otherwise identical to monitor_printf().
      
      The callback gets passed around a lot, which is tiresome.  The
      type-punning around monitor_fprintf() is ugly.
      
      Drop the callback, and call qemu_fprintf() instead.  Also gets rid of
      the type-punning, since qemu_fprintf() takes NULL instead of the
      current monitor cast to FILE *.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-Id: <20190417191805.28198-15-armbru@redhat.com>
      90c84c56
    • M
      target: Simplify how the TARGET_cpu_list() print · 0442428a
      Markus Armbruster 提交于
      The various TARGET_cpu_list() take an fprintf()-like callback and a
      FILE * to pass to it.  Their callers (vl.c's main() via list_cpus(),
      bsd-user/main.c's main(), linux-user/main.c's main()) all pass
      fprintf() and stdout.  Thus, the flexibility provided by the (rather
      tiresome) indirection isn't actually used.
      
      Drop the callback, and call qemu_printf() instead.
      
      Calling printf() would also work, but would make the code unsuitable
      for monitor context without making it simpler.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190417191805.28198-10-armbru@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      0442428a
  3. 25 3月, 2019 1 次提交
  4. 05 3月, 2019 6 次提交
  5. 28 2月, 2019 5 次提交
  6. 22 2月, 2019 1 次提交
  7. 15 2月, 2019 5 次提交
  8. 06 2月, 2019 5 次提交
  9. 01 2月, 2019 2 次提交
  10. 29 1月, 2019 1 次提交
    • A
      target/arm: Don't clear supported PMU events when initializing PMCEID1 · bf8d0969
      Aaron Lindsay OS 提交于
      A bug was introduced during a respin of:
      
      	commit 57a4a11b
      	target/arm: Add array for supported PMU events, generate PMCEID[01]_EL0
      
      This patch introduced two calls to get_pmceid() during CPU
      initialization - one each for PMCEID0 and PMCEID1. In addition to
      building the register values, get_pmceid() clears an internal array
      mapping event numbers to their implementations (supported_event_map)
      before rebuilding it. This is an optimization since much of the logic is
      shared. However, since it was called twice, the contents of
      supported_event_map reflect only the events in PMCEID1 (the second call
      to get_pmceid()).
      
      Fix this bug by moving the initialization of PMCEID0 and PMCEID1 back
      into a single function call, and name it more appropriately since it is
      doing more than simply generating the contents of the PMCEID[01]
      registers.
      Signed-off-by: NAaron Lindsay <aaron@os.amperecomputing.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20190123195814.29253-1-aaron@os.amperecomputing.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      bf8d0969
  11. 21 1月, 2019 7 次提交