Skip to content
Snippets Groups Projects
  1. Jan 07, 2021
  2. Oct 03, 2020
  3. Jun 10, 2020
  4. May 15, 2020
  5. Oct 28, 2019
  6. Jun 12, 2019
    • Markus Armbruster's avatar
      Include qemu-common.h exactly where needed · a8d25326
      Markus Armbruster authored
      
      No header includes qemu-common.h after this commit, as prescribed by
      qemu-common.h's file comment.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-5-armbru@redhat.com>
      [Rebased with conflicts resolved automatically, except for
      include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c
      block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c
      target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h
      target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h
      target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h
      target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and
      net/tap-bsd.c fixed up]
      a8d25326
  7. Apr 18, 2019
  8. Dec 25, 2018
  9. Dec 14, 2018
  10. Mar 06, 2018
  11. Nov 09, 2017
  12. Oct 25, 2017
  13. Oct 12, 2017
    • Thomas Huth's avatar
      disas: Always initialize read_memory_inner_func properly · eb584b40
      Thomas Huth authored
      
      I've recently seen this with valgrind while running the HMP tester:
      
      ==22373== Conditional jump or move depends on uninitialised value(s)
      ==22373==    at 0x4A41FD: arm_disas_set_info (cpu.c:504)
      ==22373==    by 0x3867A7: monitor_disas (disas.c:390)
      ==22373==    by 0x38E80E: memory_dump (monitor.c:1339)
      ==22373==    by 0x38FA43: handle_hmp_command (monitor.c:3123)
      ==22373==    by 0x38FB9E: qmp_human_monitor_command (monitor.c:613)
      ==22373==    by 0x4E3124: qmp_marshal_human_monitor_command (qmp-marshal.c:1736)
      ==22373==    by 0x769678: do_qmp_dispatch (qmp-dispatch.c:104)
      ==22373==    by 0x769678: qmp_dispatch (qmp-dispatch.c:131)
      ==22373==    by 0x38B734: handle_qmp_command (monitor.c:3853)
      ==22373==    by 0x76ED07: json_message_process_token (json-streamer.c:105)
      ==22373==    by 0x78D40A: json_lexer_feed_char (json-lexer.c:323)
      ==22373==    by 0x78D4CD: json_lexer_feed (json-lexer.c:373)
      ==22373==    by 0x38A08D: monitor_qmp_read (monitor.c:3895)
      
      And indeed, in monitor_disas, the read_memory_inner_func variable was
      not initialized, but arm_disas_set_info() expects this to be NULL
      or a valid pointer. Let's properly set this to NULL in the
      INIT_DISASSEMBLE_INFO to fix it in all functions that use the
      disassemble_info struct.
      
      Fixes: f7478a92 ("Fix Thumb-1 BE32 execution")
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <1506524313-20037-1-git-send-email-thuth@redhat.com>
      eb584b40
  14. Sep 05, 2017
  15. Feb 07, 2017
    • Julian Brown's avatar
      Fix Thumb-1 BE32 execution and disassembly. · f7478a92
      Julian Brown authored
      
      Thumb-1 code has some issues in BE32 mode (as currently implemented). In
      short, since bytes are swapped within words at load time for BE32
      executables, this also swaps pairs of adjacent Thumb-1 instructions.
      
      This patch un-swaps those pairs of instructions again, both for execution,
      and for disassembly. (The previous version of the patch always read four
      bytes in arm_read_memory_func and then extracted the proper two bytes,
      in a probably misguided attempt to match the behaviour of actual hardware
      as described by e.g. the ARM9TDMI TRM, section 3.3 "Endian effects for
      instruction fetches". It's less complicated to just read the correct
      two bytes though.)
      
      Signed-off-by: default avatarJulian Brown <julian@codesourcery.com>
      Message-id: ca20462a044848000370318a8bd41dd0a4ed273f.1484929304.git.julian@codesourcery.com
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      f7478a92
  16. Jan 23, 2017
  17. Sep 15, 2016
    • Thomas Huth's avatar
      Remove remainders of HPPA backend · d41f3c3c
      Thomas Huth authored
      
      The HPPA backend has been removed by the following commit:
      
          802b5081
          tcg-hppa: Remove tcg backend
      
      But some small pieces of the HPPA backend still survived until
      today. Since we also do not have support for a HPPA target in
      QEMU, we can nowadays safely remove the remaining HPPA parts
      (like the disassembler code, or the detection of HPPA in the
      configure script).
      
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      d41f3c3c
  18. Feb 04, 2016
    • Peter Maydell's avatar
      all: Clean up includes · d38ea87a
      Peter Maydell authored
      
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-16-git-send-email-peter.maydell@linaro.org
      d38ea87a
  19. Oct 22, 2015
Loading