aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-10 18:00:09 +0800
committerMike Frysinger <vapier@gentoo.org>2015-06-11 10:37:15 -0400
commitce4eda4a58d4634577cf998b928572bed6779246 (patch)
tree4d426337d6b0aba1b384387c1d39d7d08d5b26f9 /sim/common
parenta6c2a374e05770dd7469e050f5d6603e3f034f17 (diff)
downloadgdb-ce4eda4a58d4634577cf998b928572bed6779246.zip
gdb-ce4eda4a58d4634577cf998b928572bed6779246.tar.gz
gdb-ce4eda4a58d4634577cf998b928572bed6779246.tar.bz2
sim: trace: add STRACE_xxx_P macros
These are the parallel to the TRACE_xxx_P macros and fill out the full set to match the existing debug one.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog7
-rw-r--r--sim/common/sim-trace.h14
2 files changed, 21 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 586f58d..35f08bb 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,12 @@
2015-06-11 Mike Frysinger <vapier@gentoo.org>
+ * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
+ STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
+ STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
+ STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
+
+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>
diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h
index 3d91aa9..5d6919a 100644
--- a/sim/common/sim-trace.h
+++ b/sim/common/sim-trace.h
@@ -193,6 +193,20 @@ typedef struct _trace_data {
(WITH_TRACE_P (idx) && STATE_TRACE_FLAGS (sd)[idx] != 0)
/* Non-zero if --trace-<xxxx> was specified for SD. */
+#define STRACE_ANY_P(sd) ((WITH_TRACE) && (STATE_TRACE_DATA (sd)->trace_any_p))
+#define STRACE_INSN_P(sd) STRACE_P (sd, TRACE_INSN_IDX)
+#define STRACE_DECODE_P(sd) STRACE_P (sd, TRACE_DECODE_IDX)
+#define STRACE_EXTRACT_P(sd) STRACE_P (sd, TRACE_EXTRACT_IDX)
+#define STRACE_LINENUM_P(sd) STRACE_P (sd, TRACE_LINENUM_IDX)
+#define STRACE_MEMORY_P(sd) STRACE_P (sd, TRACE_MEMORY_IDX)
+#define STRACE_MODEL_P(sd) STRACE_P (sd, TRACE_MODEL_IDX)
+#define STRACE_ALU_P(sd) STRACE_P (sd, TRACE_ALU_IDX)
+#define STRACE_CORE_P(sd) STRACE_P (sd, TRACE_CORE_IDX)
+#define STRACE_EVENTS_P(sd) STRACE_P (sd, TRACE_EVENTS_IDX)
+#define STRACE_FPU_P(sd) STRACE_P (sd, TRACE_FPU_IDX)
+#define STRACE_VPU_P(sd) STRACE_P (sd, TRACE_VPU_IDX)
+#define STRACE_BRANCH_P(sd) STRACE_P (sd, TRACE_BRANCH_IDX)
+#define STRACE_SYSCALL_P(sd) STRACE_P (sd, TRACE_SYSCALL_IDX)
#define STRACE_DEBUG_P(sd) STRACE_P (sd, TRACE_DEBUG_IDX)
/* CPU tracing support. */