mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
meson: rename included C source files to .c.inc
With Makefiles that have automatically generated dependencies, you generated includes are set as dependencies of the Makefile, so that they are built before everything else and they are available when first building the .c files. Alternatively you can use a fine-grained dependency, e.g. target/arm/translate.o: target/arm/decode-neon-shared.inc.c With Meson you have only one choice and it is a third option, namely "build at the beginning of the corresponding target"; the way you express it is to list the includes in the sources of that target. The problem is that Meson decides if something is a source vs. a generated include by looking at the extension: '.c', '.cc', '.m', '.C' are sources, while everything else is considered an include---including '.inc.c'. Use '.c.inc' to avoid this, as it is consistent with our other convention of using '.rst.inc' for included reStructuredText files. The editorconfig file is adjusted. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
243af0225a
commit
139c1837db
99 changed files with 175 additions and 174 deletions
|
@ -398,7 +398,7 @@ target_ulong helper_divso(CPUPPCState *env, target_ulong arg1,
|
|||
target_ulong helper_602_mfrom(target_ulong arg)
|
||||
{
|
||||
if (likely(arg < 602)) {
|
||||
#include "mfrom_table.inc.c"
|
||||
#include "mfrom_table.c.inc"
|
||||
return mfrom_ROM_table[arg];
|
||||
} else {
|
||||
return 0;
|
||||
|
|
|
@ -6900,15 +6900,15 @@ static inline void set_avr64(int regno, TCGv_i64 src, bool high)
|
|||
tcg_gen_st_i64(src, cpu_env, avr64_offset(regno, high));
|
||||
}
|
||||
|
||||
#include "translate/fp-impl.inc.c"
|
||||
#include "translate/fp-impl.c.inc"
|
||||
|
||||
#include "translate/vmx-impl.inc.c"
|
||||
#include "translate/vmx-impl.c.inc"
|
||||
|
||||
#include "translate/vsx-impl.inc.c"
|
||||
#include "translate/vsx-impl.c.inc"
|
||||
|
||||
#include "translate/dfp-impl.inc.c"
|
||||
#include "translate/dfp-impl.c.inc"
|
||||
|
||||
#include "translate/spe-impl.inc.c"
|
||||
#include "translate/spe-impl.c.inc"
|
||||
|
||||
/* Handles lfdp, lxsd, lxssp */
|
||||
static void gen_dform39(DisasContext *ctx)
|
||||
|
@ -7587,19 +7587,19 @@ GEN_HANDLER2_E(treclaim, "treclaim", 0x1F, 0x0E, 0x1D, 0x03E0F800, \
|
|||
GEN_HANDLER2_E(trechkpt, "trechkpt", 0x1F, 0x0E, 0x1F, 0x03FFF800, \
|
||||
PPC_NONE, PPC2_TM),
|
||||
|
||||
#include "translate/fp-ops.inc.c"
|
||||
#include "translate/fp-ops.c.inc"
|
||||
|
||||
#include "translate/vmx-ops.inc.c"
|
||||
#include "translate/vmx-ops.c.inc"
|
||||
|
||||
#include "translate/vsx-ops.inc.c"
|
||||
#include "translate/vsx-ops.c.inc"
|
||||
|
||||
#include "translate/dfp-ops.inc.c"
|
||||
#include "translate/dfp-ops.c.inc"
|
||||
|
||||
#include "translate/spe-ops.inc.c"
|
||||
#include "translate/spe-ops.c.inc"
|
||||
};
|
||||
|
||||
#include "helper_regs.h"
|
||||
#include "translate_init.inc.c"
|
||||
#include "translate_init.c.inc"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Misc PowerPC helpers */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue