aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-trace.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-10 16:01:29 +0800
committerMike Frysinger <vapier@gentoo.org>2015-06-11 10:29:44 -0400
commita6c2a374e05770dd7469e050f5d6603e3f034f17 (patch)
tree4d390ab184401eb18f45887c0b589e12c8749d30 /sim/common/sim-trace.h
parent9b9c712cebc08f4242fdcf3b12c057f57bd1b589 (diff)
downloadgdb-a6c2a374e05770dd7469e050f5d6603e3f034f17.zip
gdb-a6c2a374e05770dd7469e050f5d6603e3f034f17.tar.gz
gdb-a6c2a374e05770dd7469e050f5d6603e3f034f17.tar.bz2
sim: trace: use existing defines for the useful mask
No point in duplicating the shift logic when we have macros already to keep that all unified.
Diffstat (limited to 'sim/common/sim-trace.h')
-rw-r--r--sim/common/sim-trace.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h
index df995a6..3d91aa9 100644
--- a/sim/common/sim-trace.h
+++ b/sim/common/sim-trace.h
@@ -87,10 +87,7 @@ enum {
splat on the screen everything under the sun making nothing easy to
find. */
#define TRACE_USEFUL_MASK \
-((1 << TRACE_INSN_IDX) \
- | (1 << TRACE_LINENUM_IDX) \
- | (1 << TRACE_MEMORY_IDX) \
- | (1 << TRACE_MODEL_IDX))
+ (TRACE_insn | TRACE_linenum | TRACE_memory | TRACE_model)
/* Masks so WITH_TRACE can have symbolic values.
The case choice here is on purpose. The lowercase parts are args to