aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/acinclude.m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-25 01:48:01 -0500
committerMike Frysinger <vapier@gentoo.org>2022-12-27 00:31:33 -0500
commit67c952d109873321b45b6de99cdbefbcd4249745 (patch)
tree06b40be2dcb9744e665590b13056220deeb20c00 /sim/mips/acinclude.m4
parent4c45662c0fd49bf25d3a014dec54224e9d11e90f (diff)
downloadgdb-67c952d109873321b45b6de99cdbefbcd4249745.zip
gdb-67c952d109873321b45b6de99cdbefbcd4249745.tar.gz
gdb-67c952d109873321b45b6de99cdbefbcd4249745.tar.bz2
sim: mips: unify itable generation (a bit)
The m16 & multi targets generate itable once even when all the other modules are generated multiple times. The default igen target will generate itable with everything else out of convenience. This means flags are passed which don't affect the generated itable there. We can unify the itable generation by making sure the right -F/-M filter variables are passed down. Since there's already a dedicated rule & variable in the multi build mode, generalize that and switch the m16 & igen builds over too. I spent a lot of time staring at this code, building for diff mips targets, and exploring all the shell code paths. I think this is safe, but only time (and users) will really tell.
Diffstat (limited to 'sim/mips/acinclude.m4')
-rw-r--r--sim/mips/acinclude.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/mips/acinclude.m4 b/sim/mips/acinclude.m4
index 116dc1e..452dfc8 100644
--- a/sim/mips/acinclude.m4
+++ b/sim/mips/acinclude.m4
@@ -321,6 +321,8 @@ __EOF__
], [dnl
dnl For clean-extra target.
SIM_MIPS_MULTI_SRC=doesnt-exist.c
+ SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_IGEN_FLAGS)'
+ AS_VAR_IF([SIM_MIPS_GEN], ["M16"], [AS_VAR_APPEND([SIM_MIPS_IGEN_ITABLE_FLAGS], [' $(SIM_MIPS_M16_FLAGS)'])])
])
SIM_MIPS_IGEN_FLAGS="-F ${sim_mips_igen_filter} ${sim_mips_igen_machine}"
SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"