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.
This commit is contained in:
Mike Frysinger 2015-06-10 16:01:29 +08:00
parent 9b9c712ceb
commit a6c2a374e0
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2015-06-11 Mike Frysinger <vapier@gentoo.org>
* sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
2015-06-11 Mike Frysinger <vapier@gentoo.org>
* sim-trace.h (WITH_TRACE_P): New define.

View File

@ -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