• Stefano Stabellini's avatar
    disas/libvixl: prepend the include path of libvixl header files · 834fb1b2
    Stefano Stabellini authored
    Currently the Makefile of disas/libvixl appends
    -I$(SRC_PATH)/disas/libvixl to QEMU_CFLAGS. As a consequence C++ files
    that #include "utils.h", such as disas/libvixl/a64/instructions-a64.cc,
    are going to look for utils.h on all the other include paths first.
    
    When building QEMU as part of the Xen make system, another unrelated
    utils.h file is going to be chosen for inclusion, causing a build
    failure:
    
    In file included from disas/libvixl/a64/instructions-a64.cc:27:0:
    /qemu/disas/libvixl/a64/instructions-a64.h:88:64: error:
    'rawbits_to_float' was not declared in this scope
     const float kFP32PositiveInfinity = rawbits_to_float(0x7f800000);
    
    Fix the problem by prepending (rather than appending) the libvixl
    include path to QEMU_CFLAGS.
    Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    834fb1b2
Name
Last commit
Last update
..
libvixl Loading commit data...
Makefile.objs Loading commit data...
alpha.c Loading commit data...
arm-a64.cc Loading commit data...
arm.c Loading commit data...
cris.c Loading commit data...
hppa.c Loading commit data...
i386.c Loading commit data...
ia64.c Loading commit data...
lm32.c Loading commit data...
m68k.c Loading commit data...
microblaze.c Loading commit data...
mips.c Loading commit data...
moxie.c Loading commit data...
ppc.c Loading commit data...
s390.c Loading commit data...
sh4.c Loading commit data...
sparc.c Loading commit data...
tci.c Loading commit data...