From: Mike Frysinger Date: Wed, 10 Jun 2015 08:01:29 +0000 (+0800) Subject: sim: trace: use existing defines for the useful mask X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6c2a374e05770dd7469e050f5d6603e3f034f17;p=binutils-gdb.git 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. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 039c6758daa..586f58d43f2 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2015-06-11 Mike Frysinger + + * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines. + 2015-06-11 Mike Frysinger * sim-trace.h (WITH_TRACE_P): New define. diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h index df995a690a4..3d91aa9a62c 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