The cgen code declares some macros/funcs using the trace_xxx prefix, but the code isn't generic and only works with cgen targets. This is blocking the creation of new common trace functions. Let's blindly add cgen_xxx prefixes to all these symbols. Some already use this convention to avoid conflicts, so it makes sense to align them. In the future we might want to move some to the common trace core, but one thing at a time. I'm attaching the patch compressed because it's like 2MB in size. It's all pretty mechanical -- the large files were updated using `sed`. Committed. --- sim/common/ChangeLog | 41 + sim/common/cgen-run.c | 2 +- sim/common/cgen-trace.c | 21 +- sim/common/cgen-trace.h | 39 +- sim/common/genmloop.sh | 8 +- sim/cris/ChangeLog | 10 + sim/cris/decodev10.c | 226 ++-- sim/cris/decodev32.c | 216 ++-- sim/cris/mloop.in | 6 +- sim/cris/semcrisv10f-switch.c | 2466 ++++++++++++++++++------------------ sim/cris/semcrisv32f-switch.c | 2476 ++++++++++++++++++------------------ sim/frv/ChangeLog | 7 + sim/frv/decode.c | 546 ++++---- sim/frv/mloop.in | 6 +- sim/frv/sem.c | 2770 ++++++++++++++++++++--------------------- sim/iq2000/ChangeLog | 8 + sim/iq2000/decode.c | 60 +- sim/iq2000/mloop.in | 6 +- sim/iq2000/sem-switch.c | 176 +-- sim/iq2000/sem.c | 174 +-- sim/lm32/ChangeLog | 8 + sim/lm32/decode.c | 46 +- sim/lm32/mloop.in | 6 +- sim/lm32/sem-switch.c | 132 +- sim/lm32/sem.c | 130 +- sim/m32r/ChangeLog | 12 + sim/m32r/decode.c | 118 +- sim/m32r/decode2.c | 144 +-- sim/m32r/decodex.c | 144 +-- sim/m32r/mloop.in | 6 +- sim/m32r/sem-switch.c | 254 ++-- sim/m32r/sem.c | 252 ++-- sim/m32r/sem2-switch.c | 522 ++++---- sim/m32r/semx-switch.c | 508 ++++---- sim/sh64/ChangeLog | 16 + sim/sh64/decode-compact.c | 274 ++-- sim/sh64/decode-media.c | 170 +-- sim/sh64/mloop-compact.c | 14 +- sim/sh64/mloop-media.c | 14 +- sim/sh64/sem-compact-switch.c | 600 ++++----- sim/sh64/sem-compact.c | 598 ++++----- sim/sh64/sem-media-switch.c | 476 +++---- sim/sh64/sem-media.c | 474 +++---- 43 files changed, 7143 insertions(+), 7039 deletions(-)