diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-06-12 13:29:02 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-06-12 04:19:45 -0400 |
commit | db7858e227f3951c665410314fca62c77349ac24 (patch) | |
tree | 01fb8b93600bc89ef86a7e883ca17e3df8387174 /sim/sh64/mloop-compact.c | |
parent | 966f0aefa6a96df2c45ec36a7ecc02419e3842db (diff) | |
download | gdb-db7858e227f3951c665410314fca62c77349ac24.zip gdb-db7858e227f3951c665410314fca62c77349ac24.tar.gz gdb-db7858e227f3951c665410314fca62c77349ac24.tar.bz2 |
sim: cgen: namespace custom trace functions
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.
Diffstat (limited to 'sim/sh64/mloop-compact.c')
-rw-r--r-- | sim/sh64/mloop-compact.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sim/sh64/mloop-compact.c b/sim/sh64/mloop-compact.c index fb6b552..16d6e63 100644 --- a/sim/sh64/mloop-compact.c +++ b/sim/sh64/mloop-compact.c @@ -124,8 +124,8 @@ execute (SIM_CPU *current_cpu, SCACHE *sc, int fast_p) if (PROFILE_MODEL_P (current_cpu) && ARGBUF_PROFILE_P (abuf)) sh64_compact_model_insn_before (current_cpu, 1 /*first_p*/); - TRACE_INSN_INIT (current_cpu, abuf, 1); - TRACE_INSN (current_cpu, idesc->idata, + CGEN_TRACE_INSN_INIT (current_cpu, abuf, 1); + CGEN_TRACE_INSN (current_cpu, idesc->idata, (const struct argbuf *) abuf, abuf->addr); } #if WITH_SCACHE @@ -144,7 +144,7 @@ execute (SIM_CPU *current_cpu, SCACHE *sc, int fast_p) cycles = (*idesc->timing->model_fn) (current_cpu, sc); sh64_compact_model_insn_after (current_cpu, 1 /*last_p*/, cycles); } - TRACE_INSN_FINI (current_cpu, abuf, 1); + CGEN_TRACE_INSN_FINI (current_cpu, abuf, 1); } #else abort (); @@ -459,7 +459,7 @@ sh64_compact_pbb_before (SIM_CPU *current_cpu, SCACHE *sc) } } - TRACE_INSN_FINI (current_cpu, cur_abuf, 0 /*last_p*/); + CGEN_TRACE_INSN_FINI (current_cpu, cur_abuf, 0 /*last_p*/); } /* FIXME: Later make cover macros: PROFILE_INSN_{INIT,FINI}. */ @@ -467,8 +467,8 @@ sh64_compact_pbb_before (SIM_CPU *current_cpu, SCACHE *sc) && ARGBUF_PROFILE_P (cur_abuf)) sh64_compact_model_insn_before (current_cpu, first_p); - TRACE_INSN_INIT (current_cpu, cur_abuf, first_p); - TRACE_INSN (current_cpu, cur_idesc->idata, cur_abuf, pc); + CGEN_TRACE_INSN_INIT (current_cpu, cur_abuf, first_p); + CGEN_TRACE_INSN (current_cpu, cur_idesc->idata, cur_abuf, pc); } /* x-after handler. @@ -493,7 +493,7 @@ sh64_compact_pbb_after (SIM_CPU *current_cpu, SCACHE *sc) cycles = (*prev_idesc->timing->model_fn) (current_cpu, prev_sem_arg); sh64_compact_model_insn_after (current_cpu, 1 /*last_p*/, cycles); } - TRACE_INSN_FINI (current_cpu, prev_abuf, 1 /*last_p*/); + CGEN_TRACE_INSN_FINI (current_cpu, prev_abuf, 1 /*last_p*/); } #define FAST_P 0 |