binutils-gdb/sim/mips
Mike Frysinger 109a0a7e90 sim: modules.c: fix generation after recent refactors
Add explicit arch-specific modules.c rules to keep the build from
generating an incorrect common/modules.c.  Otherwise the pattern
rules would cascade such that it'd look for $arch/modules.o which
turned into common/modules.c which triggered the gen rule.

My local testing of this code didn't catch this bug because of how
Automake manages .Po (dependency files) in incremental builds -- it
was adding extra rules that override the pattern rules which caused
the build to generate correct modules.c files.  But when building
from a cold cache, the pattern rules would force common/modules.c to
be used leading to crashes at runtime.
2023-01-15 20:55:48 -05:00
..
acinclude.m4
ChangeLog-2021
cp1.c
cp1.h
dsp2.igen
dsp.c
dsp.igen
dv-tx3904cpu.c
dv-tx3904irc.c
dv-tx3904sio.c
dv-tx3904tmr.c
interp.c
local.mk
m16.dc
m16.igen
m16e.igen
m16run.c
mdmx.c
mdmx.igen
micromips16.dc
micromips.dc
micromips.igen
micromipsdsp.igen
micromipsrun.c
mips3d.igen
mips3264r2.igen
mips3264r6.igen
mips.dc
mips.igen
sb1.igen
sim-main.c
sim-main.h
smartmips.igen
tx.igen
vr.igen