summaryrefslogtreecommitdiffstats
path: root/microblaze-dis.c
Commit message (Collapse)AuthorAgeFilesLines
* *-dis: Replace fprintf_ftype by fprintf_function (format checking)Stefan Weil2010-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* microblaze: fix custom fprintfThomas Monjalon2010-04-271-31/+31
| | | | | | | | | | | | | | | | 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: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix format stringsArnaud Lacombe2010-04-171-2/+2
| | | | | | | | | | | | | | | | This fix the following build failure: CC libdis-user/microblaze-dis.o cc1: warnings being treated as errors microblaze-dis.c: In function 'print_insn_microblaze': microblaze-dis.c:829: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' microblaze-dis.c:962: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' Reported-at: http://www.monstr.eu/wiki/doku.php?id=log:2010-04-13_12_10_00 Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* Update to a hopefully more future proof FSF addressBlue Swirl2010-03-071-4/+2Star
| | | | | | | | See also 8167ee883931cb20c6264fc19d040ce2dc6ceaaa, 530e7615ce3c01882e582c84dc6304ab98a3d5c5 and fad6cb1a565bb73f83fc0e2654489457b489e436. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* microblaze: Update disasm to latest GPLv2 version.Edgar E. Iglesias2009-12-101-96/+354
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* bdf: Remove last users of FALSE/TRUEJuan Quintela2009-10-051-1/+1
| | | | | | | | | | This brings bfd_boolean to the wonderful world of <stdbool.h>, it is needed because it defines bdf_boolean as an enum with values true and false, and some architectures use TRUE, FALSE and give problems when you try to use <stdbool.h> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Update to a hopefully more future proof FSF addressBlue Swirl2009-07-161-4/+2Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* microblaze-dis.c does not need to be executableBlue Swirl2009-06-091-0/+0
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* microblaze: Add disassembler.Edgar E. Iglesias2009-05-261-0/+846
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>