1. 10 6月, 2019 1 次提交
  2. 13 5月, 2019 1 次提交
  3. 11 5月, 2019 1 次提交
  4. 29 4月, 2019 1 次提交
  5. 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: Clean up how the dump_mmu() print · fad866da
      Markus Armbruster 提交于
      The various dump_mmu() take an fprintf()-like callback and a FILE * to
      pass to it, and so do their helper functions.  Passing around callback
      and argument is rather tiresome.
      
      Most dump_mmu() are called only by the target's hmp_info_tlb().  These
      all pass monitor_printf() cast to fprintf_function and the current
      monitor cast to FILE *.
      
      SPARC's dump_mmu() gets also called from target/sparc/ldst_helper.c a
      few times #ifdef DEBUG_MMU.  These calls pass fprintf() and stdout.
      
      The type-punning is technically undefined behaviour, but works in
      practice.  Clean up: drop the callback, and call qemu_printf()
      instead.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-Id: <20190417191805.28198-11-armbru@redhat.com>
      fad866da
  6. 01 6月, 2018 1 次提交
  7. 20 3月, 2018 2 次提交
  8. 21 2月, 2018 1 次提交
  9. 25 1月, 2018 1 次提交
    • L
      accel/tcg: add size paremeter in tlb_fill() · 98670d47
      Laurent Vivier 提交于
      The MC68040 MMU provides the size of the access that
      triggers the page fault.
      
      This size is set in the Special Status Word which
      is written in the stack frame of the access fault
      exception.
      
      So we need the size in m68k_cpu_unassigned_access() and
      m68k_cpu_handle_mmu_fault().
      
      To be able to do that, this patch modifies the prototype of
      handle_mmu_fault handler, tlb_fill() and probe_write().
      do_unassigned_access() already includes a size parameter.
      
      This patch also updates handle_mmu_fault handlers and
      tlb_fill() of all targets (only parameter, no code change).
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: NDavid Hildenbrand <david@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20180118193846.24953-2-laurent@vivier.eu>
      98670d47
  10. 18 12月, 2017 1 次提交
  11. 16 10月, 2017 1 次提交
    • R
      linux-user: Tidy and enforce reserved_va initialization · 18e80c55
      Richard Henderson 提交于
      We had a check using TARGET_VIRT_ADDR_SPACE_BITS to make sure
      that the allocation coming in from the command-line option was
      not too large, but that didn't include target-specific knowledge
      about other restrictions on user-space.
      
      Remove several target-specific hacks in linux-user/main.c.
      
      For MIPS and Nios, we can replace them with proper adjustments
      to the respective target's TARGET_VIRT_ADDR_SPACE_BITS definition.
      
      For ARM, we had no existing ifdef but I suspect that the current
      default value of 0xf7000000 was chosen with this in mind.  Define
      a workable value in linux-user/arm/, and also document why the
      special case is required.
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20170708025030.15845-3-rth@twiddle.net>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      18e80c55
  12. 01 9月, 2017 1 次提交
  13. 25 1月, 2017 1 次提交
    • C
      nios2: Add architecture emulation support · 032c76bc
      Chris Wulff 提交于
      Add support for emulating Altera NiosII R1 architecture into qemu.
      This patch is based on previous work by Chris Wulff from 2012 and
      updated to latest mainline QEMU.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chris Wulff <crwulff@gmail.com>
      Cc: Jeff Da Silva <jdasilva@altera.com>
      Cc: Ley Foon Tan <lftan@altera.com>
      Cc: Sandra Loosemore <sandra@codesourcery.com>
      Cc: Yves Vandervennet <yvanderv@altera.com>
      Cc: Alexander Graf <agraf@suse.de>
      Message-Id: <20170118220146.489-3-marex@denx.de>
      [rth: Remove tlb_flush from nios2_cpu_reset.]
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      032c76bc