qemu-patch-raspberry4/disas
Peter Maydell 16c1321bd7 tci: Fix compile failure by including qemu-common.h
Compilation of TCI was accidentally broken by the recent disassembler
changes:

  CC    x86_64-softmmu/arch_init.o
In file included from target-i386/cpu-qom.h:23:0,
                 from target-i386/cpu.h:986,
                 from include/qemu-common.h:122,
                 from include/disas/bfd.h:12,
                 from disas/tci.c:20:
include/qom/cpu.h:178:43: error: unknown type name ‘disassemble_info’
     void (*disas_set_info)(CPUState *cpu, disassemble_info *info);
                                           ^
include/qom/cpu.h:179:1: error:
no semicolon at end of struct or union [-Werror]
 } CPUClass;
 ^
cc1: all warnings being treated as errors

The underlying cause of this is an include loop:
 bfd.h -> qemu-common.h -> target-arm/cpu.h ->  target-arm/cpu-qom.h
  -> qom/cpu.h -> bfd.h

which means that if bfd.h is included first then qom/cpu.h doesn't
get the definition of the disassemble_info type that it wanted.
The easiest fix for this is to include qemu-common.h from tci.c
before including disas/bfd.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2015-07-09 17:50:27 +01:00
..
libvixl disas/libvixl: Update to upstream VIXL 1.7 2015-02-05 13:37:25 +00:00
alpha.c build: kill libdis, move disassemblers to disas/ 2012-12-19 08:29:06 +01:00
arm-a64.cc disas: arm-a64: Make printfer and stream variable 2015-07-09 15:20:41 +02:00
arm.c disas/arm: Fix warnings caused by missing 'static' attribute 2015-03-10 08:15:34 +03:00
cris.c disas: cris: Fix 0 buffer length case 2015-07-09 15:20:41 +02:00
hppa.c build: kill libdis, move disassemblers to disas/ 2012-12-19 08:29:06 +01:00
i386.c disas/i386: Disassemble ANDN/SHLX/SHRX/SHAX 2014-02-17 10:12:29 -06:00
ia64.c build: kill libdis, move disassemblers to disas/ 2012-12-19 08:29:06 +01:00
lm32.c lm32-dis: fix NULL pointer dereference 2013-03-18 19:40:34 +01:00
m68k.c Replace all setjmp()/longjmp() with sigsetjmp()/siglongjmp() 2013-02-23 16:11:19 +00:00
Makefile.objs build: convert some obj-specific CFLAGS to use new foo.o-cflags syntax 2014-05-08 15:27:49 +02:00
microblaze.c disas/microblaze: Fix warnings caused by missing 'static' attribute 2015-03-10 08:15:34 +03:00
mips.c target-mips: add MTHC0 and MFHC0 instructions 2015-06-12 09:05:31 +01:00
moxie.c Add moxie disassembler 2013-03-23 14:25:41 +00:00
ppc.c disas/ppc.c: Fix little endian disassembly 2013-09-02 10:06:41 +02:00
s390.c disas/s390.c: Remove unused variables 2015-02-03 12:27:05 -08:00
sh4.c disas/sh4: Fix warning caused by missing 'static' attribute 2015-02-10 10:26:05 +03:00
sparc.c disas/sparc: Remove unused data sparc_opcode_archs[] 2015-01-21 16:18:01 +00:00
tci.c tci: Fix compile failure by including qemu-common.h 2015-07-09 17:50:27 +01:00