Skip to content
Snippets Groups Projects
  1. Jun 06, 2022
  2. May 09, 2022
  3. May 04, 2022
  4. Mar 22, 2022
  5. Jan 08, 2022
  6. Oct 22, 2021
  7. May 12, 2021
  8. May 10, 2021
  9. Feb 18, 2021
  10. Jan 07, 2021
  11. Oct 03, 2020
  12. Jul 11, 2020
  13. May 15, 2020
  14. Mar 19, 2020
  15. Jan 29, 2020
  16. Oct 28, 2019
  17. Aug 16, 2019
  18. Jun 12, 2019
    • Markus Armbruster's avatar
      Clean up a few header guard symbols · 37677d7d
      Markus Armbruster authored
      
      Commit 58ea30f5 "Clean up header guards that don't match their file
      name" messed up contrib/elf2dmp/qemu_elf.h and
      tests/migration/migration-test.h.
      
      It missed target/cris/opcode-cris.h and
      tests/uefi-test-tools/UefiTestToolsPkg/Include/Guid/BiosTablesTest.h
      due to the scripts/clean-header-guards.pl bug fixed in the previous
      commit.
      
      Commit a8b991b5 "Clean up ill-advised or unusual header guards"
      missed include/hw/xen/io/ring.h for the same reason.
      
      Commit 3979fca4 "disas: Rename include/disas/bfd.h back to
      include/disas/dis-asm.h" neglected to update the guard symbol for the
      rename.
      
      Commit a331c6d7 "semihosting: implement a semihosting console"
      created include/hw/semihosting/console.h with an ill-advised guard
      symbol.
      
      Clean them up.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190604181618.19980-4-armbru@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Tested-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      37677d7d
    • 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
  19. May 13, 2019
  20. Apr 18, 2019
  21. Oct 25, 2018
  22. Mar 06, 2018
  23. Jan 09, 2018
  24. Nov 09, 2017
  25. Oct 25, 2017
  26. 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
  27. 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
  28. Jan 24, 2017
    • Marek Vasut's avatar
      nios2: Add disas entries · 3f0c3423
      Marek Vasut authored
      
      Add nios2 disassembler support. This patch is composed from binutils files
      from commit "Opcodes and assembler support for Nios II R2". The files from
      binutils used in this patch are:
      
          include/opcode/nios2.h
          include/opcode/nios2r1.h
          include/opcode/nios2r2.h
          opcodes/nios2-opc.c
          opcodes/nios2-dis.c
      
      Checkpatch says total: 114 errors, 0 warnings, 3609 lines checked , which
      is caused by a different coding style in those files. These warnings and
      errors are not addressed To let these files be easily synchronized between
      binutils and qemu.
      
      Signed-off-by: default avatarMarek 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>
      Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
      Message-Id: <20170118220146.489-2-marex@denx.de>
      Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
      3f0c3423
  29. Jul 19, 2016
Loading