Skip to content
Snippets Groups Projects
  1. Apr 18, 2019
  2. Dec 25, 2018
  3. Jul 04, 2017
  4. Mar 24, 2017
    • Peter Maydell's avatar
      disas/microblaze: Remove unused REG_PC define · bd517b43
      Peter Maydell authored
      
      The REG_PC define in disas/microblaze.c clashes with a define in
      the Linux SPARC system headers:
      
      /home/pm215/qemu/disas/microblaze.c:162:0: error: "REG_PC" redefined [-Werror]
       #define REG_PC  32 /* PC */
      
      In file included from /usr/include/signal.h:326:0,
                       from /home/pm215/qemu/include/qemu/osdep.h:86,
                       from /home/pm215/qemu/disas/microblaze.c:36:
      /usr/include/sparc64-linux-gnu/sys/ucontext.h:96:0: note: this is the location of the previous definition
       #define REG_PC  (1)
      
      Since the code doesn't actually use the REG_PC define
      anywhere, the simplest fix is just to remove it.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      Message-id: 1490272961-1128-1-git-send-email-peter.maydell@linaro.org
      bd517b43
  5. Mar 07, 2017
  6. Jan 28, 2016
  7. Sep 11, 2015
  8. Mar 10, 2015
    • Stefan Weil's avatar
      disas/microblaze: Fix warnings caused by missing 'static' attribute · 52b831de
      Stefan Weil authored
      
      Warnings from the Sparse static analysis tool:
      
      disas/microblaze.c:289:3: warning:
       symbol 'opcodes' was not declared. Should it be static?
      disas/microblaze.c:570:6: warning:
       symbol 'register_prefix' was not declared. Should it be static?
      disas/microblaze.c:571:6: warning:
       symbol 'special_register_prefix' was not declared. Should it be static?
      disas/microblaze.c:572:6: warning:
       symbol 'fsl_register_prefix' was not declared. Should it be static?
      disas/microblaze.c:573:6: warning:
       symbol 'pvr_register_prefix' was not declared. Should it be static?
      
      Remove the unused variable special_register_prefix.
      The variable pvr_register_prefix was unused, too, but can be used.
      Add also 'const' where possible.
      
      Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      52b831de
  9. Dec 19, 2012
  10. Dec 04, 2010
    • Stefan Weil's avatar
      *-dis: Replace fprintf_ftype by fprintf_function (format checking) · 6e2d864e
      Stefan Weil authored
      
      This patch adds more printf format checking.
      
      Additional modifications were needed for this code change:
      
      * alpha-dis.c: The local definition of MAX conflicts with
        a previous definition from osdep.h, so add an #undef.
      
      * dis-asm.h: Add include for fprintf_function (qemu-common.h).
        The standard (now redundant) includes are removed.
      
      * mis-dis.c: The definition of ARRAY_SIZE is no longer needed
        and must be removed (conflict with previous definition from
        qemu-common.h).
      
      * sh4-dis.c: Remove some unneeded forward declarations.
      
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      6e2d864e
  11. Apr 27, 2010
    • Thomas Monjalon's avatar
      microblaze: fix custom fprintf · aacf4563
      Thomas Monjalon authored
      
      Using GCC-4.2.4-1ubuntu4, there is a warning:
      	microblaze-dis.c:792: warning: unused variable 'fprintf'
      
      Indeed, fprintf() is shadowed by a custom redefinition but is not used because
      of FORTIFY_SOURCE option which replace calls to fprintf() by fprintf_chk().
      So, fprintf refers to the libc implementation instead of the qemu one.
      It's a bug.
      
      It is fixed by renaming the variable to something different of "fprintf".
      It prevents from hazardous shadowing.
      
      Signed-off-by: default avatarThomas Monjalon <thomas@monjalon.net>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      aacf4563
  12. Apr 17, 2010
  13. Mar 07, 2010
  14. Dec 10, 2009
  15. Oct 05, 2009
  16. Jul 16, 2009
  17. Jun 09, 2009
  18. May 26, 2009
Loading