diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-06-11 18:28:25 +0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-06-12 06:34:20 -0400 |
commit | bb11f3ed2bd9eeddca84cc3a80c3643ddae517f3 (patch) | |
tree | 12dba53f4b4234217584f24d345980060c93271a /sim/bfin/dv-bfin_cec.c | |
parent | 29bc024d07fe480cd37f36097f23d5585b15e71c (diff) | |
download | gdb-bb11f3ed2bd9eeddca84cc3a80c3643ddae517f3.zip gdb-bb11f3ed2bd9eeddca84cc3a80c3643ddae517f3.tar.gz gdb-bb11f3ed2bd9eeddca84cc3a80c3643ddae517f3.tar.bz2 |
sim: trace: add common macros for logging info
The Blackfin port had some TRACE_xxx macros for easily logging trace data.
Use these as a base for common ones that have a simple form and match the
existing sets of helper macros.
Diffstat (limited to 'sim/bfin/dv-bfin_cec.c')
-rw-r--r-- | sim/bfin/dv-bfin_cec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/bfin/dv-bfin_cec.c b/sim/bfin/dv-bfin_cec.c index d7517924..186edcb 100644 --- a/sim/bfin/dv-bfin_cec.c +++ b/sim/bfin/dv-bfin_cec.c @@ -599,7 +599,7 @@ _cec_raise (SIM_CPU *cpu, struct bfin_cec *cec, int ivg) else SET_PCREG (cec_get_evt (cpu, ivg)); - TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC (to EVT%i):", ivg); + BFIN_TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC (to EVT%i):", ivg); BFIN_CPU_STATE.did_jump = true; /* Enable the global interrupt mask upon interrupt entry. */ @@ -648,7 +648,7 @@ cec_latch (SIM_CPU *cpu, int ivg) { bu32 oldpc = PCREG; SET_PCREG (cec_read_ret_reg (cpu, ivg)); - TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC"); + BFIN_TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC"); return; } @@ -679,7 +679,7 @@ cec_return (SIM_CPU *cpu, int ivg) if (STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT) { SET_PCREG (cec_read_ret_reg (cpu, ivg)); - TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC"); + BFIN_TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC"); return; } @@ -744,9 +744,9 @@ cec_return (SIM_CPU *cpu, int ivg) /* XXX: Delayed clear shows bad PCREG register trace above ? */ SET_PCREG (newpc & ~1); - TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC (from EVT%i)", ivg); + BFIN_TRACE_BRANCH (cpu, oldpc, PCREG, -1, "CEC changed PC (from EVT%i)", ivg); - /* Update ipend after the TRACE_BRANCH so dv-bfin_trace + /* Update ipend after the BFIN_TRACE_BRANCH so dv-bfin_trace knows current CEC state wrt overflow. */ if (!snen) cec->ipend &= ~(1 << ivg); |